why this program shows no output. If there is a output what is it. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why this program shows no output. If there is a output what is it.

class MyClass { public static void main(String[ ] args) { String name ="David"; int age = 42; double score =15.9; char group = 'Z'; } }

3rd Dec 2017, 9:23 AM
d.praveenraj
d.praveenraj - avatar
1 Answer
+ 2
u have to use system.out.println () or any other functions to see your out put
3rd Dec 2017, 9:30 AM
Jamil Amini
Jamil Amini - avatar