Question: 2. Given the following code: byte vlue=129; System.out.println(vlue); int value=129; System.out.println(value); a) What is the output displayed on screen? b) What is the cause

2. Given the following code: byte vlue=129; System.out.println(vlue); int value=129; System.out.println(value); a)

 

2. Given the following code: byte vlue=129; System.out.println(vlue); int value=129; System.out.println(value); a) What is the output displayed on screen? b) What is the cause of that output? c) Comment the first two lines and run the code again. What output is displayed now? d) What makes the outputs on a) and c) different?

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 Programming Questions!