Computer Science, asked by BrainlyProgrammer, 7 months ago

find the output of the following snippet:-
System.out.println("gm"+2+3) ;
System. out. print("gm"+2+3) ;
System. out. print(2+3+"gm") ;
System. out. println(2+3+"gm") ;

Answers

Answered by Oreki
2

Given Snippet:

   System.out.println("gm" + 2 + 3);

   System.out.print("gm" + 2 + 3);

   System.out.print(2 + 3 + "gm");

   System.out.println(2 + 3 + "gm");

Output:

gm23

gm235gm5gm

Similar questions