Suppose you have the following statements in your program wi

Suppose you have the following statements in your program, will it pass compilation without any error? If an error is showing during the compilation, write down the correct statement in double speed = 75.5; int points = speed; ANS(1); circle Yes or NO Your are trying to compare two primitive variables, what comparison symbol you should use? You are trying to compare two java objects for its content, what is the method name you should use

Solution

5) (1) No

(2) int points = (int)speed;

(3) Casting

6) (1) object1 == object2

(2) object1.equals(object2)

 Suppose you have the following statements in your program, will it pass compilation without any error? If an error is showing during the compilation, write dow

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site