Regarding to strings

Class String{
public static void main(String args[]){
}
}

Questions by yekkalarajesh

Showing Answers 1 - 12 of 12 Answers

Vishweshwar

  • Mar 8th, 2015
 

Should be throwing Exception about the main method missing.

  Was this answer useful?  Yes

viru

  • Apr 7th, 2015
 

Will execute normally and returns/prints nothing.

  Was this answer useful?  Yes

viru

  • Apr 7th, 2015
 

will execute normally.

  Was this answer useful?  Yes

Rahul Garg

  • Jun 16th, 2015
 

Throw an exception because Class name should not be same with predefined Class Name/DataType.

Code
  1. Class String1{

  2. public static void main(String args[]){

  3. }

  4. }

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions