- 1

Is there is any problem in code?

class Test { public static void main(String... a1) { int x=10; System.out.println(x); } }

9th Oct 2022, 5:04 AM
Himanshu Sharma
Himanshu Sharma - avatar
4 Answers
0
🧚SomyađŸŒč in ide it show no error but if I run it on cmd it show error 1:duplicate class or 2:file does not contain class Stering
9th Oct 2022, 5:22 AM
Himanshu Sharma
Himanshu Sharma - avatar
0
For compiling -javac Test.java And for run java Test
9th Oct 2022, 5:36 AM
Himanshu Sharma
Himanshu Sharma - avatar