Q. What would be the output of the following fraction of code?
int Integer = 34 ;
char String = 'S' ;
System.out.print( Integer ) ;
System.out.print( String ) ;

  • (A) Does not compile as Integer and String are API class names.
  • (B) Throws exception.
  • (C) 34
  • (D) 34 S
πŸ’¬ Discuss
βœ… Correct Answer: (D) 34 S

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
112
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
87%
Success Rate