Home > Java Programming > Quizzes > Java Basics Practice Test:  Java Environment & OOPS Concepts
Java Basics Practice Test:  Java Environment & OOPS Concepts
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Which component is responsible for converting bytecode into machine specific cod…”
Quiz on OOPS concepts, JDK, JRE, JIT AND JVM, polymorphism, encapsulation and java buzzwords. Here are the main OOP concepts in Java: Encapsulation: Encapsulation is the process of binding data and the code that works on that data together. This prevents accidental changes to the data. In Java, encapsulation is achieved by using classes and objects. A class is a blueprint for creating objects, and an object is an instance of a class. Classes can contain data members (variables) and methods (functions). Data members are used to store data, and methods are used to perform operations on that... Show more
Java Basics Practice Test:  Java Environment & OOPS Concepts
Time left 00:00
20 Questions

1. Which component is used to compile, debug and execute java program?
2. Which component is responsible to optimize bytecode to machine code?
3. Which of the below is invalid identifier with the main method?
4. What is it called if an object has its own lifecycle and there is no owner?
5. Which component is responsible to run java program?
6. Which of the following is a type of polymorphism in Java?
7. What is it called where child object gets killed if parent object is killed?
8. When does method overloading is determined?
9. What is it called where object has its own lifecycle and child object cannot belong to another parent object?
10. Method overriding is combination of inheritance and polymorphism?
11. Which concept of Java is achieved by combining methods and attribute into a class?
12. What is it called if an object has its own lifecycle and there is no owner?
13. Which component is responsible to run java program?
14. Which component is responsible to optimize bytecode to machine code?
15. Which statement is true about java?
16. When Overloading does not occur?
17. How can we identify whether a compilation unit is class or interface from a .class file?
18. Which of the following is not OOPS concept in Java?
19. When does method overloading is determined?
20. What is the extension of java code files?