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 is byte [] in java?
What do you understand by garbage collection in Java? Can it be forced to run?
What is an object's lock and which object's have locks in java programming?
What error occurs if a try-catch-finally statement sequence does not have a catch clause?
What is scope & storage allocation of global and extern variables? Explain with an example
JVM is platform independent or depeneded?
Why map is used in java?
How do you insert a line break?
what is the use of StringBuffer?
Write a java program to generate fibonacci series ?
What is comparator in java?
justify c is portable