a) Compile time polymorphism b) Multiple polymorphism c) Execution time polymorphism d) Multilevel polymorphism Answer: a Explanation: There are two types of polymorphism ...
View QuestionWhich component is responsible for converting bytecode into machine specific code?
a) JDK b) JVM c) JRE d) JIT Answer: b Explanation: JVM is responsible to converting bytecode to the machine specific code.
View QuestionWhich of the below is invalid identifier with the main method?
a) public b) final c) private d) static Answer: c Explanation: main method cannot be private as it is invoked by external method. Other identifier ...
View QuestionWhich component is responsible to run java program?
a) JVM b) JIT c) JDK d) JRE Answer: d Explanation: JRE is the implementation of JVM, it provides platform to execute java ...
View QuestionWhich concept of Java is achieved by combining methods and attribute into a class?
a) Abstraction b) Inheritance c) Encapsulation d) Polymorphism Answer: c Explanation: Encapsulation is implemented by combining methods and attribute into a class. The class acts ...
View QuestionWhich statement is true about java?
a) Platform independent programming language b) Platform dependent programming language c) Code dependent programming language d) Sequence dependent programming language Answer: a Explanation: Java is ...
View QuestionWhich component is used to compile, debug and execute java program?
a) JDK b) JRE c) JIT d) JVM Answer: a Explanation: JDK is a core component of Java Environment and provides all the tools, executables ...
View QuestionWhat is the extension of compiled java classes?
a) .txt b) .class c) .java d) .js Answer: b Explanation: The compiled java files have .class extension
View QuestionWhat is use of interpreter?
a) They are intermediated between JIT and JVM b) They read high level code and execute them c) They convert bytecode ...
View QuestionWhat is the extension of java code files?
a) .class b) .txt c) .js d) .java Answer: d Explanation: Java files have .java extension
View Question