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

Can we able to pass objects as an arguments in java?

0 Answers  


Which of the following classes will have more memory allocated?

0 Answers  


Can we declare an array without size in java?

0 Answers  


Can java list be null?

0 Answers  


Can a static method be final?

0 Answers  






What checkbox method allows you to tell if a checkbox is checked?

0 Answers  


Explain about class in java?

0 Answers  


What is the difference between the paint() and repaint() methods?

0 Answers  


What is scope & storage allocation of static, local and register variables? Explain with an example.

0 Answers   IBS,


JVM responsibility?

6 Answers   TCS,


Is it possible to use string in the switch case?

0 Answers  


In what type of containers, Border layout is a default layout?

3 Answers  


Categories