//With out using main method progrma (Use static) class With_Out_MainMathod { static int i=m1(); static int m1() { System.out.println("With out main mathod"); System.exit(0);//-->To terminate the program return 10; } } // java6 "version" only // java7 and 8 are not suported. | 0 |
By: [email protected] On: Sat Jan 28 15:41:09 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
not possible without main | 0 |
By: [email protected] On: Tue Jan 31 22:16:48 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |