0

How the programs run in Java platform

I am new to Java I can't understand how to run a program in Java please explain me

29th Jan 2017, 2:08 AM
Rekha Cindepall
Rekha Cindepall - avatar
3 Answers
+ 1
thanks
31st Jan 2017, 8:37 AM
Rekha Cindepall
Rekha Cindepall - avatar
0
if you use a ide as netbeans with jdk installed you won't need to compile the code by yourself and debug errors but if you don't, add java to your environnement variable and then you use it directly from your console as a command an specify the file containing the main entry point
30th Jan 2017, 5:39 PM
Oussama Jaaouani
Oussama Jaaouani - avatar
0
Whenever you write a source code that code is saved with a .Java extension now when u compile it with the help of a compiler our source code will be compiled throughout once and then a list of errors are displayed we also have a class loader files that links the classes and make the relevant relationship among them therefore compilation is the initial step if it is error free then our bytecode is generated this code is also called as portable code because Java is a platform independent language so this compiled code is now shareable to any platform then JVM plays a vital role by converting our bytecode to machine understandable form with the help of an interpreter and are output is received
14th Feb 2017, 6:38 PM
Astha Bhasin
Astha Bhasin - avatar