How To Create Two Class Using Note Pad in Java ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How To Create Two Class Using Note Pad in Java ?

I Want To Create Two Different Class in java using note pad and run them using cmd run those coodes .

29th May 2017, 4:37 PM
Rahul Roy
Rahul Roy - avatar
2 Answers
+ 3
javac file1.java file2.java if multiple filess are in same folder javac *.java
29th May 2017, 4:44 PM
MR Programmer
MR Programmer - avatar
+ 2
create your 2 class and the class that holde your main method must be his name as your java program main ex(myclass is the class that hold the main method so the program main must be myclass.java then u can create how many class that u want)
29th May 2017, 5:54 PM
Arya R. Husen
Arya R. Husen - avatar