What is a compilation unit?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
a compilation unit resides on the jvm to convert the source
code into byte code after successful debugging
| Is This Answer Correct ? | 3 Yes | 1 No |
Compilation unit is .class file , i mean to say here
let's assume that below class as an instance
class Demo
{
public static void main(String args[])
{
System.out.println("hello");
}
}
//>javac Demo.java
once this is executed you will have Demo.class file which is compilation unit for jvm.
| Is This Answer Correct ? | 2 Yes | 0 No |
What data type is a string?
I want to print “hello” even before main is executed. How will you acheive that?
What are the two ways you can synchronize a block of code?
Explain jvm, jre, and jdk?
Give me some null interfaces in java?
What is a parameter used for?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
Why do we override tostring method in java?
What are the rules for variable declaration?
What methods are used in Servlet?Applet communication?
What is core java called?
What is JVM ?
4 Answers Phantom Technologies, TCS,