class p { static string="main with string[]args"; Static strint="main with int[]args"; public static void main(String [] args) { System.out.println(string); } public static void main(int []args0 { System.out.println(strint); } } is this program compile ane execute successfully ? if yes wat is the answer and why . if no why.
Joel McNary
Bartender
Joined: Aug 20, 2001
Posts: 1815
posted
0
Have you tried compiling it and seeing the result?
As it is, no, it won't compile. Why? The compiler's error messages will tell you why.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
K Riaz
Ranch Hand
Joined: Jan 08, 2005
Posts: 375
posted
0
Assignment question! Why not compile it yourself and see?