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

What are the steps to do connection pooling in weblogic?

1 Answers   TCS,


What is meant by data hiding/encapsulation?

0 Answers   Cyient,


What is array length?

0 Answers  


What is scope of a variable?

0 Answers   TCS,


What is the difference between preemptive scheduling and time slicing?

0 Answers  






What is the right data type to represent a price in java?

0 Answers  


What is the purpose of using the java bean?

0 Answers  


How to make a class immutable?

15 Answers   Bosch, TSYS,


How do you reverse sort in java?

0 Answers  


What Is Pointer?

4 Answers  


Why java is used everywhere?

0 Answers  


Hi Every One I Have Small Doubt Please answer This???????????????????????????? I Want to use AbstractList class methods(java.util.AbstractList) My Program is import java.util.*; class DemoOne extends AbstractList { public static void main(String[] args) { AbstractList a=new DemoOne();//This One is Correct?? DemoOne a1=new DemoOne();//This One is Correct?? Both Are Not Working System.out.println("Hello World!"+a); System.out.println("Hello World!"+a1); } } Error IS: DemoOne.java:2: DemoOne is not abstract and does not override abstract method get(int) in java.util.AbstractList class DemoOne extends AbstractList AnyOne can Please Provide The Solution????????????????????????? Plzzzzzzz

3 Answers  


Categories