+ 1

java output result not showing

I am using window 10 and writing code in notepad ++ . and execute in cmd. in cms javac.example.java command is working. and new class file also is crating. after executing same code open directly in notepad ++ but it is not showing output result in cmd insead of code/file in notepad. kindly may tell to me my mistake for showing output in cmd

12th Dec 2019, 3:27 AM
sunny
sunny - avatar
3 Answers
0
I suggest using eclipse, as it's free and it takes care of compiling for you. I am sure the reason why it didn't work is just a simple thing you may forgot, but using eclipse is really just the main thing i'd suggest while programming java.
12th Dec 2019, 5:57 AM
coddy
coddy - avatar
0
For compiling the java code use- javac example.java For executing it we use- java example
12th Dec 2019, 10:36 AM
Avinesh
Avinesh - avatar
0
after class example.java in cmd Windows 10 out put result not showing only note pad ++ open in code. why. output result is not showing
20th Dec 2019, 2:50 PM
sunny
sunny - avatar