Title | |
---|---|
Which of the following is a type of polymorphism in JavaWhich of the following is a type of polymorphism in Java?
The answer is:
A. Compile time polymorphism
|
|
When does method overloading is determinedWhen does method overloading is determined?
The answer is:
B. At compile time
|
|
When Overloading does not occurWhen Overloading does not occur?
The answer is:
D. More than one method with same name, same number of parameters and type but different signature
|
|
Which concept of Java is a way of converting real world objects in terms of classWhich concept of Java is a way of converting real world objects in terms of class?
The answer is:
C. Abstraction
|
|
Which concept of Java is achieved by combining methods and attribute into a classWhich concept of Java is achieved by combining methods and attribute into a class?
The answer is:
A. Encapsulation
|
|
What is it called if an object has its own lifecycle and there is no ownerWhat is it called if an object has its own lifecycle and there is no owner?
The answer is:
D. Association
|
|
What is it called where child object gets killed if parent object is killedWhat is it called where child object gets killed if parent object is killed?
The answer is:
B. Composition
|
|
What is it called where object has its own lifecycle and child object cannot belong to another parent objectWhat is it called where object has its own lifecycle and child object cannot belong to another parent object?
The answer is:
A. Aggregation
|
|
State True Or FalseMethod overriding is combination of inheritance and polymorphism?
The answer is:
A. True
|
|
Which component is used to compile, debug and execute java programWhich component is used to compile, debug and execute java program?
The answer is:
B. JDK
|
|
Which component is responsible for converting bytecode into machine specific codeWhich component is responsible for converting bytecode into machine specific code?
The answer is:
A. JVM
|
|
Which component is responsible to run java program |
|
Which component is responsible to optimize bytecode to machine codeWhich component is responsible to optimize bytecode to machine code?
The answer is:
C. JIT
|
|
Which statement is true about javaWhich statement is true about java?
The answer is:
A. Platform independent programming language
|
|
Which of the below is invalid identifier with the main methodWhich of the below is invalid identifier with the main method?
The answer is:
C. private
|
|
What is the extension of java code files |
|
What is the extension of compiled java classesWhat is the extension of compiled java classes?
The answer is:
A. .class
|
|
How can we identify whether a compilation unit is class or interface from a .class fileHow can we identify whether a compilation unit is class or interface from a .class file?
The answer is:
A. Java source file header
|
|
What is use of interpreterWhat is use of interpreter?
The answer is:
B. They read high level code and execute them
|
|
Which of these package is used for text formatting in Java programming languageWhich of these package is used for text formatting in Java programming language?
The answer is:
A. java.text
|
MCQs
Views
Best Answers
Points