Is JRE required to compile Java files ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is the range of the short datatype?
Define immutable object?
Is ResultSet class?
5 Answers Bally Technologies, TCS,
What one should take care of, while serializing the object?
What class of exceptions are generated by the java run-time system?
How do you square a number in java?
How do you declare a variable?
Why is java not 100% pure oops?
There is a Banking application. It has 2 types of account, Savings and Current. Write a method calculateInterest by passing an ArrayList of these account objects and calculate Interest accordingly. Write code for this situation
Is array synchronized in java?
Can you run java program without main method?
How would you format a date in java? I.e. In the ddmmyyy format?