0
Why i m not getting the output in the following program?
class student { void student() { System.out.println("const"); } } public static void main(String[] args) { student s1=new student(); student s2=new student(); student s3=new student(); s1.student(); s2.student(); s3.student(); } }
5 Answers
+ 3
Navin kumar
It is working after removing curly brace before the line of main method.
+ 2
Remove the curly brace before the main method you have used an extra brace
+ 2
I á´á´ "TÉŞá´á´" Yes done thank u
0
Parth Shendge still not working