What is a compilation unit?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Do I need java on my pc?

508


What is the Concept of Encapsulation in OOPS

558


Which class is the superclass for every class in java programming?

573


What data structures are used to perform recursion?

606


Can we have 2 main methods in java class?

543






What are the 3 types of control structures?

530


How do singleton patterns work?

516


Are arrays primitive data types?

638


Can we make a constructor final?

543


What is difference between fail-fast and fail-safe?

587


Why inputstreamreader is used in java?

550


What are the features of junit?

600


How many characters is 2 bytes?

532


What are the important methods of java exception class?

570


What is parameters example?

554