Question 6:
public class Message {
public static void main(String[]
args) {
//What does the following code print?
System.out.println( "3"+4 );
System.out.println( 3+4 );
System.out.println( 2+"4" );
System.out.println("4
3" );
System.out.println( "3 + 4"+3+4 );
System.out.println( "3 + 4"+(3+4 ));
}
}
It print
34
7
24
4 3
3 + 434
3 + 47
No comments:
Post a Comment