+ 1

how to compile java files with multiple classes

i m making a program which will have multiple classes how should i compile them they are all saved separately as . java files and all dependent on each other. i m not using any ide.

17th Jul 2017, 12:29 PM
shobhit
shobhit - avatar
2 Antworten
+ 3
well there are two ways 1- compile one by one OR 2- just compile the .Java file which has MAIN function in it - compiler will get it's all related Java file and will convert to class file
17th Jul 2017, 12:36 PM
Ashwaghosh Sadanshiv
Ashwaghosh Sadanshiv - avatar
+ 1
thnx for ur help.
17th Jul 2017, 12:39 PM
shobhit
shobhit - avatar