+ 1

java 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:30 AM
sunny
sunny - avatar
1 Resposta
+ 1
How did you run the example.class? what command did you type in command prompt? javac filename.java This compiles filename.java to filename.class (bytecode file). java filename.class This runs/executes the compiled bytecode file (.class file)
13th Dec 2019, 6:57 AM
Ipang