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. 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) JVM b) JDK c) JIT d) JRE Answer: c) JIT Explanation: JIT optimizes bytecode to machine-specific language code by compiling similar bytecodes at the
a) Narrowing Type Conversion b) Widening Type Conversion c) No Type Conversion d) None of the above Answer d) Widening Type Conversion
a. MyProgram.java is a compiled executable class file that is run by the computer, and MyProgram.class is a source code file typed by the programmer
Oracle Certified Tutor/Trainer with 100+ reviews