Is JRE required to compile Java files ?

Answers were Sorted based on User's Feedback



Is JRE required to compile Java files ?..

Answer / abhishek

see,javac is compiler of java which is use to convert
the .java file into .class file,but only .class file can
not exceute the java program for exceuting java program we
should require a enviorment and a JIT compiler,the
enviorment over which .class file exceutes itself is called
jre(java runtime enviorment),Na JIt compliler which works
as interepter for .class file ,that makes java plate for
independent

Is This Answer Correct ?    11 Yes 0 No

Is JRE required to compile Java files ?..

Answer / harish

To compile a Java file, it should have a tools.jar and
dt.jar in the classpath. It should have a javac
executable. It compiles the class file. If you want to
execute the class file, you should have a Java Run-time
Environment. (JRE)

Is This Answer Correct ?    8 Yes 3 No

Is JRE required to compile Java files ?..

Answer / madan

no

Is This Answer Correct ?    5 Yes 2 No

Is JRE required to compile Java files ?..

Answer / giridhar gangapatnam

No, JRE is not required to compile java files. For the
compilation of java files only javac is enough. but JRE is
for execution of java files

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain the available thread states in a high-level?

0 Answers  


This is related to threads. I have a class with synchronized method m1(). Can I create different instances of this class and execute the m1() for different threads?

3 Answers  


Can you tell me range of byte?

0 Answers  


What do you mean by local class?

0 Answers  


Create a form of user Login in JSP, that accepts the user name and password from user and authenticate it with user names and passwords stored in database. (Plz provide me answer immediately)

1 Answers   ABC,






whats string ?

10 Answers   HCL,


What is an object class?

0 Answers  


What is entry set in java?

0 Answers  


What are the different types of constructor?

0 Answers  


How do you identify independent and dependent variables?

0 Answers  


Can inner class final?

0 Answers  


What is hash in java?

0 Answers  


Categories