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

while creating thread why we extend thread class

2 Answers  


Which class is used by server applications to obtain a port and listen for client requests?

0 Answers  


What is method overloading in JAVA? Why is it not present in C ?

0 Answers   Akamai Technologies,


What is downcasting?

0 Answers  


What do you mean by garbage collection used in java?

0 Answers  






Can we restart a dead thread in java?

0 Answers  


What is ‘is-a ‘ relationship in java?

0 Answers  


When we serialize an object does the serialization mechanism saves its references too?

0 Answers  


IN java collections we have both interfaces and classes. instead of using interfaces why we can't use classes only like that why we can't use interfaces only. why we need two things interface and class.

6 Answers   Accenture, CTS,


Which class should you use to obtain design information about an object

2 Answers  


What is the difference between private & public & friendly classes?

0 Answers  


Why volatile is used in java?

0 Answers  


Categories