Java MSBTE Exam Revision Notes
2 Marks Questions (Very Short Answers)
Q: What is Java?
A: Java is a high-level, object-oriented, platform-independent programming language.
Q: What is JVM?
A: JVM executes Java bytecode.
Q: What is JDK?
A: JDK is used to develop Java applications.
Q: What is JRE?
A: JRE provides libraries and JVM to run Java programs.
Q: What is Bytecode?
A: Intermediate code generated by Java compiler.
Q: What is Class?
A: Blueprint to create objects.
Q: What is Object?
A: Instance of a class.
Q: What is Inheritance?
A: Acquiring properties of another class.
Q: What is Polymorphism?
A: One name, many forms.
Q: What is Encapsulation?
A: Binding data and methods together.
Q: What is Abstraction?
A: Hiding internal details.
Q: Method Overloading?
A: Same name, different parameters.
Q: Method Overriding?
A: Redefining method in subclass.
Q: What is Constructor?
A: Initializes objects.
Q: What is Package?
A: Collection of related classes.
4 Marks Questions (Short Answers)
Features of Java:
1 Platform Independent
2 Object-Oriented
3 Secure
4 Robust
5 Multithreaded
OOP Concepts:
1 Encapsulation – Data hiding
2 Inheritance – Code reuse
3 Polymorphism – Multiple behavior
4 Abstraction – Hide complexity
Component Description
JDK Development tools
JRE Runtime environment
JVM Executes bytecode
Types of Inheritance:
1 Single
2 Multilevel
3 Hierarchical
Exception Handling: try, catch, finally, throw
Access Specifiers:
1 Public – everywhere
2 Private – within class
3 Protected – package + subclass
4 Default – package
Multithreading: Multiple threads run simultaneously.