Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java

How do i run java code. i tried .java. when i run it with Mozilla. it displays the code.

27th Aug 2018, 4:14 PM
Soluade Taiwo John
Soluade Taiwo John - avatar
1 Answer
0
Java is a compiled language so you must compile it and run the .class file. This can be done from the command line, or an IDE that supports Java, which might be a little easier once it's set up.
27th Aug 2018, 4:18 PM
Dan Walker
Dan Walker - avatar