Similar Collections


    No collections found

questions

Title
Which of the following is a type of polymorphism in Java

Which of the following is a type of polymorphism in Java?


  1. Compile time polymorphism
  2. Execution time polymorphism
  3. Multiple polymorphism
  4. Multilevel polymorphism
discuss
When does method overloading is determined

When does method overloading is determined?


  1. At run time
  2. At compile time
  3. At coding time
  4. At execution time
discuss
When Overloading does not occur

When Overloading does not occur?


  1. More than one method with same name but different method signature and different number or type of parameters
  2. More than one method with same name, same signature but different number of signature
  3. More than one method with same name, same signature, same number of parameters but different type
  4. More than one method with same name, same number of parameters and type but different signature
discuss
Which concept of Java is a way of converting real world objects in terms of class

Which concept of Java is a way of converting real world objects in terms of class?


  1. Polymorphism
  2. Encapsulation
  3. Abstraction
  4. Inheritance
discuss
Which concept of Java is achieved by combining methods and attribute into a class

Which concept of Java is achieved by combining methods and attribute into a class?


  1. Encapsulation
  2. Inheritance
  3. Polymorphism
  4. Abstraction
discuss
What is it called if an object has its own lifecycle and there is no owner

What is it called if an object has its own lifecycle and there is no owner?


  1. Aggregation
  2. Composition
  3. Encapsulation
  4. Association
discuss
What is it called where child object gets killed if parent object is killed

What is it called where child object gets killed if parent object is killed?


  1. Aggregation
  2. Composition
  3. Encapsulation
  4. Association
discuss
What is it called where object has its own lifecycle and child object cannot belong to another parent object

What is it called where object has its own lifecycle and child object cannot belong to another parent object?


  1. Aggregation
  2. Composition
  3. Encapsulation
  4. Association
discuss
State True Or False

Method overriding is combination of inheritance and polymorphism?


  1. True
  2. False
  3. May be
  4. Can't say
discuss
Which component is used to compile, debug and execute java program

Which component is used to compile, debug and execute java program?


  1. JVM
  2. JDK
  3. JIT
  4. JRE
discuss
Which component is responsible for converting bytecode into machine specific code

Which component is responsible for converting bytecode into machine specific code?


  1. JVM
  2. JDK
  3. JIT
  4. JRE
discuss
Which component is responsible to run java program

Which component is responsible to run java program?


  1. JVM
  2. JDK
  3. JIT
  4. JRE
discuss
Which component is responsible to optimize bytecode to machine code

Which component is responsible to optimize bytecode to machine code?


  1. JVM
  2. JDK
  3. JIT
  4. JRE
discuss
Which statement is true about java

Which statement is true about java?


  1. Platform independent programming language
  2. Platform dependent programming language
  3. Code dependent programming language
  4. Sequence dependent programming language
discuss
Which of the below is invalid identifier with the main method

Which of the below is invalid identifier with the main method?


  1. public
  2. static
  3. private
  4. final
discuss
What is the extension of java code files

What is the extension of java code files?


  1. .class
  2. .java
  3. .txt
  4. .js
discuss
What is the extension of compiled java classes

What is the extension of compiled java classes?


  1. .class
  2. .java
  3. .txt
  4. .js
discuss
How can we identify whether a compilation unit is class or interface from a .class file

How can we identify whether a compilation unit is class or interface from a .class file?


  1. Java source file header
  2. Extension of compilation unit
  3. We cannot differentiate between class and interface
  4. The class or interface name should be postfixed with unit type
discuss
What is use of interpreter

What is use of interpreter?


  1. They convert bytecode to machine language code
  2. They read high level code and execute them
  3. They are intermediated between JIT and JVM
  4. It is a synonym for JIT
discuss
Which of these package is used for text formatting in Java programming language

Which of these package is used for text formatting in Java programming language?


  1. java.text
  2. java.awt
  3. java.awt.text
  4. java.io
discuss
total MCQs: 225

MCQs

225

Views

129

Best Answers

299

Points

5