-
-
-
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
-
What is the output of following program ?
{geshibot language="c"} class Test { public static void main(String args[]) { for(int i=0;i