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 the importance of main method in Java?
Which class has no duplicate elements?
What is the use of parseint in java?
What package is math in java?
What is boolean in java?
How many times garbage collector will invoke an object?s finalize() method?
GoldMansachs Interview process....
What is a concrete classes? Is Java object class is concrete class?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
When should I use stringbuffer?
Is there any limitation of using inheritance?
Is java call by reference?