1. What is JVM Architecture?Answer: JVM architecture consists of ClassLoader, Runtime Data Areas (Heap, Stack, Method Area), Execution Engine, and Native Interface. It loads class files, manages memory, and executes bytecode.
  2. What is ClassLoader?Answer: ClassLoader loads .class files into JVM memory. Types include Bootstrap, Extension, and Application ClassLoader.
  3. What is Method Area?Answer: Method Area stores class metadata, static variables, and method information.
  4. What is Program Counter Register?Answer: It stores the address of the currently executing instruction.
  5. What is JIT Compiler?Answer: JIT compiler converts bytecode into native machine code to improve performance.
  6. What is Platform Independent feature?Answer: Java is platform independent because bytecode runs on JVM regardless of OS.
  7. What is Platform Dependent feature?Answer: Platform dependent programs run only on specific operating systems.
  8. What is Native Method?Answer: Native methods are written in other languages like C or C++ and accessed in Java.
  9. What is JNI?Answer: JNI (Java Native Interface) allows Java to interact with native applications.
  10. What is Bytecode Verifier?Answer: It checks bytecode for security violations.
  11. What is Class?Answer: Class is a blueprint used to create objects.
  12. What is Object?Answer: Object is an instance of a class.
  13. What is Instance Variable?Answer: Instance variable belongs to object and stored in heap memory.
  14. What is Local Variable?Answer: Local variables are declared inside methods.
  15. What is Static Variable?Answer: Static variable belongs to class and shared among all objects.
  16. What is Static Method?Answer: Static methods belong to class and can be called without object.
  17. What is Instance Method?Answer: Instance method belongs to object.
  18. What is Method Signature?Answer: Method signature includes method name and parameter list.
  19. What is Constructor Overloading?Answer: Multiple constructors with different parameters.
  20. What is Default Constructor?Answer: Constructor provided automatically by compiler if not defined.
  21. What is Parameterized Constructor?Answer: Constructor with parameters.
  22. What is Copy Constructor?Answer: Constructor that copies another object.
  23. What is Access Modifier?Answer: Defines visibility (public, private, protected, default).
  24. What is Public Modifier?Answer: Accessible everywhere.
  25. What is Private Modifier?Answer: Accessible only within class.
  26. What is Protected Modifier?Answer: Accessible within package and subclasses.
  27. What is Default Modifier?Answer: Accessible within same package.
  28. What is Encapsulation?Answer: Wrapping data and methods into class.
  29. What is Abstraction?Answer: Hiding implementation details.
  30. What is Inheritance?Answer: Acquiring properties of parent class.
  31. What is Polymorphism?Answer: Ability to perform multiple tasks with same method.
  32. What is Compile Time Polymorphism?Answer: Method overloading.
  33. What is Runtime Polymorphism?Answer: Method overriding.
  34. What is Dynamic Binding?Answer: Method call resolved at runtime.
  35. What is Static Binding?Answer: Method call resolved at compile time.
  36. What is Abstract Class?Answer: Class with abstract methods.
  37. What is Interface?Answer: Blueprint with abstract methods.
  38. What is Multiple Inheritance?Answer: Java supports via interfaces.
  39. What is Object Class?Answer: Root class of Java.
  40. What is toString() method?Answer: Returns string representation of object.
  41. What is equals() method?Answer: Compares object content.
  42. What is hashCode() method?Answer: Returns unique integer for object.
  43. What is finalize() method?Answer: Called before garbage collection.
  44. What is Garbage Collection?Answer: Automatic memory cleanup.
  45. What is Exception?Answer: Runtime error.
  46. What is Checked Exception?Answer: Checked at compile time.
  47. What is Unchecked Exception?Answer: Checked at runtime.
  48. What is try block?Answer: Contains risky code.
  49. What is catch block?Answer: Handles exception.
  50. What is finally block?Answer: Executes always.
  51. What is Thread?Answer: Lightweight process.
  52. What is Multithreading?Answer: Running multiple threads simultaneously.
  53. What is Runnable interface?Answer: Used to create thread.
  54. What is Thread class?Answer: Used to create thread.
  55. What is Synchronization?Answer: Controls thread access.
  56. What is Deadlock?Answer: Threads waiting for each other.
  57. What is Collection?Answer: Group of objects.
  58. What is List?Answer: Ordered collection.
  59. What is Set?Answer: Unique elements collection.
  60. What is Map?Answer: Key-value pair collection.
  61. What is ArrayList?Answer: Dynamic array.
  62. What is LinkedList?Answer: Doubly linked list.
  63. What is HashSet?Answer: Unique element set.
  64. What is TreeSet?Answer: Sorted set.
  65. What is HashMap?Answer: Key-value pair storage.
  66. What is TreeMap?Answer: Sorted key-value storage.
  67. What is Iterator?Answer: Used to traverse collection.
  68. What is Comparable?Answer: Used for sorting.
  69. What is Comparator?Answer: Custom sorting logic.
  70. What is Lambda?Answer: Anonymous function.
  71. What is Stream?Answer: Used to process collections.
  72. What is Optional?Answer: Avoid null pointer exception.
  73. What is Serialization?Answer: Convert object to byte stream.
  74. What is Deserialization?Answer: Convert byte stream to object.
  75. What is Enum?Answer: Fixed constants.
  76. What is Wrapper Class?Answer: Primitive to object conversion.
  77. What is Autoboxing?Answer: Primitive to wrapper conversion automatically.
  78. What is Unboxing?Answer: Wrapper to primitive conversion.
  79. What is Reflection?Answer: Inspect class at runtime.
  80. What is Singleton?Answer: Single instance class.
  81. What is Package?Answer: Group of classes.
  82. What is API?Answer: Predefined classes and methods.
  83. What is Java SE?Answer: Standard Edition.
  84. What is Java EE?Answer: Enterprise Edition.
  85. What is Java ME?Answer: Mobile Edition.
  86. What is JAR file?Answer: Java Archive file.
  87. What is WAR file?Answer: Web application archive.
  88. What is EAR file?Answer: Enterprise archive file.
  89. What is Classpath?Answer: Path of class files.
  90. What is JVM stack?Answer: Stores method calls.
  91. What is Heap area?Answer: Stores objects.
  92. What is Method overriding rule?Answer: Same signature and inheritance required.
  93. What is Method overloading rule?Answer: Different parameters required.
  94. What is Loose Coupling?Answer: Reduced dependency between classes.
  95. What is Tight Coupling?Answer: Strong dependency between classes.
  96. What is SOLID principle?Answer: OOP design principles.
  97. What is Dependency Injection?Answer: Providing dependency externally.
  98. What is MVC?Answer: Model View Controller architecture.
  99. Why Java is secure?Answer: JVM security, bytecode verifier, no pointers.
  100. Why Java is robust?Answer: Strong memory management and exception handling.
  101. Why Java is portable?Answer: Bytecode runs on any JVM.
  102. Why Java is object-oriented?Answer: Uses classes and objects.

📢 Join Our WhatsApp Channel

💼 Get Daily IT Job Updates, Interview Preparation Tips & Instant Alerts directly on WhatsApp.

👉 Join WhatsApp Now

📢 Join Our Telegram Channel

💼 Get Daily IT Job Updates, Interview Tips & Exclusive Alerts directly on Telegram!

👉 Join Telegram

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2022 - 2025 itfreesource.com

Enable Notifications OK No thanks