Question: write in java code. (d) Show the output of the following statements. (1) System.out.println(1 + 1); [1 mark] (11) System.out.println('1' + 1); ; [1 mark]

 write in java code. (d) Show the output of the following

write in java code.

(d) Show the output of the following statements. (1) System.out.println("1" + 1); [1 mark] (11) System.out.println('1' + 1); ; [1 mark] (ii) System.out.println("1" + 1 + 1); [1 mark] (iv) System.out.print("*. 340n", 45.13) [1 mark) (v) System.out.print(Bebn", 123.456789); [1 mark) (e) Which are the following variable declarations are valid or invalid? If a variable declaration is invalid, give the reason(s) and give the valid declaration. & - 100.6; char aksara ! int one = 1, two double x, y, 2; 7/Line 1 //Line 2 //Line 3 //Line 4 (4 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!