i would use .java for running a program and ur saying we can use .class can we use both ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

i would use .java for running a program and ur saying we can use .class can we use both ?

i would use .java for running a program and ur saying we can use .class can we use both ?

5th Feb 2017, 1:05 PM
adithya krishna
adithya krishna - avatar
1 Antwort
0
The .java file that you save the code that YOU WRITE is compiled by javac compiler, which creates the .class file containing Java byte code. You can't read the byte code with notepad. When you issue the Java command, the Java virtual machine runs the byte code in the .class file. Hope this helps!
5th Feb 2017, 2:22 PM
Heng