What is a compilation unit?

Answers were Sorted based on User's Feedback



What is a compilation unit?..

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

What is a compilation unit?..

Answer / priyabrata patro

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

Post New Answer

More Core Java Interview Questions

What is the importance of main method in Java?

0 Answers  


Which class has no duplicate elements?

8 Answers  


What is the use of parseint in java?

0 Answers  


What package is math in java?

0 Answers  


What is boolean in java?

0 Answers  






How many times garbage collector will invoke an object?s finalize() method?

4 Answers  


GoldMansachs Interview process....

1 Answers   Goldman Sachs,


What is a concrete classes? Is Java object class is concrete class?

0 Answers   Infosys,


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

0 Answers  


When should I use stringbuffer?

0 Answers  


Is there any limitation of using inheritance?

0 Answers  


Is java call by reference?

0 Answers  


Categories