1) Ex 2.1 is te differnc between the literals 4,4.0, ‘4’, and “4”? 2) Ex 2.3 output is produced by the following code fragment? Explain. System.out.print(“Here we go!”) System.out.print(“12345”) System.out.print(“Test

1) Ex 2.1 is te differnc between the literals 4,4.0, ‘4’, and “4”? 2) Ex 2.3 output is produced by the following code fragment? Explain. System.out.print(“Here we go!”) System.out.print(“12345”) System.out.print(“Test this if you are not sure.”): System.out.print(“Another.”) System.out.println(): System.out.println(“All done.”) 3) Ex 2.4 is wrong with the following program statement? How can it be fixed? System.out.println(“To be or not to be, that is the question.”) 4) Ex 2.8 value is contained in the floating point variable depth after the following statemts are executed? depth = 2.4; depth = 2 – depth * 4; depth = depth / 5; Purchase the answer to view it Purchase the answer to view it

Do you need us to help you on this or any other assignment?


Make an Order Now