-
Is the following Java program run? private static void main(String args[]) { class valan { //body of the class } }
No. Compilation error will occur.The error message is : main method should be public
No. Compilation error will occur.The error message is : main method should be public
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.