a) int
b) long
c) byte
d) float
Answer
a) int
Explanation:
In an expression involving bytes, ints, shorts, or literal numbers, the entire expression is promoted to int before any calculation is done so correct response will be option a (int).
a) int
b) long
c) byte
d) float
a) int
In an expression involving bytes, ints, shorts, or literal numbers, the entire expression is promoted to int before any calculation is done so correct response will be option a (int).
A. while statement B. do…while statement C. for statement D. loop statement Answer: D. loop statement Explanation: Repetition statement in java are while loop ,
a) SimpleDateFormat b) DateFormat c) SimpleFormat d) DateConverte Answer: a) SimpleDateFormat Explanation: We can use the SimpleDateFormat function in java to do this! So, option
a. Polymorphism b. Inheritance c. Abstraction d. Encapsulation Answer: b. Inheritance Explanation Inheritance in Java is a mechanism in which one object acquires all the
a. 76 b. 76.0252175 c. 76.03 d. 76.02 Answer: a. 76 Explanation: Firstly, 76.0252175 is multiplied by 100 we get the result as 7602.52175. Now
Oracle Certified Tutor/Trainer with 100+ reviews