Question
Protected internet can canlaisviuses. Unless you meeltaedit, irs safer to stayinProtected view points) a) What is displayed when the folowing statements are System out pnntin 2 2/22) System aut println(2 t 3 4) system out printin((2 30 4) System out printin (1 2 3 System out println( 1 2 3) System out println hello" 1 (2 3) 4. System out println10564). System.out printin (false && true tatse), System out printnitalse ll rue &8 false); system out printingtrue llfalse && true). System out printin mello System out printing goodbye
Explanation / Answer
1.a) In the given statements of the program the variable x has to be declared.if it is not delcared there will be a compile time error. So I declared x as integer to execute the program.
Output of program:
4
20
6
123
hello154
2
false
false
true
hello