0% found this document useful (0 votes)
3 views3 pages

Important Questions

The document outlines an assignment consisting of important Core Java questions, covering various topics such as basic Java concepts, object-oriented programming, exception handling, and Java 8 features. The assignment starts on May 21, 2025, and is due by May 28, 2025. It includes a comprehensive list of 100 questions designed to test knowledge and understanding of Java programming.

Uploaded by

vipasana3011
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Important Questions

The document outlines an assignment consisting of important Core Java questions, covering various topics such as basic Java concepts, object-oriented programming, exception handling, and Java 8 features. The assignment starts on May 21, 2025, and is due by May 28, 2025. It includes a comprehensive list of 100 questions designed to test knowledge and understanding of Java programming.

Uploaded by

vipasana3011
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment –III

st
Start Date:21 May’25 Submission Date:28th May’25
Important Core Java questions
1. Basic Java Concepts
1. What is Java?
2. What are the features of Java?
3. What is the difference between JDK, JRE, and JVM?
4. Explain the Java memory model.
5. What is the difference between a compiled and an interpreted language?
6. Why is Java platform-independent?
7. What is the main method signature in Java?
8. What are data types in Java?
9. What are variables and how are they declared?
10. What is type casting in Java?
2. Object-Oriented Programming
11. What are the four pillars of OOP?
12. What is a class in Java?
13. What is an object?
14. What is the difference between class and object?
15. What is inheritance in Java?
16. What is method overloading?
17. What is method overriding?
18. What is polymorphism?
19. What is abstraction?
20. What is encapsulation?
3. Constructors and Initialization
21. What is a constructor?
22. What is constructor overloading?
23. What is the difference between constructor and method?
24. What is the use of this keyword?
25. Can a constructor be private?
4. Static Keyword and Blocks
26. What is the static keyword in Java?
27. What is a static block?
28. Can we overload static methods?
29. Can static methods access instance variables?
5. Access Modifiers
30. What are access modifiers in Java?
31. What is the difference between public, private, protected, and default?
32. Can you override a private or static method?
6. Inheritance and Interfaces
33. What is the difference between extends and implements?
34. What is multiple inheritance? Does Java support it?
35. What is an interface?
36. What is an abstract class?
37. Difference between abstract class and interface?
38. Can an interface extend another interface?
39. Can an interface implement another interface?
40. Can a class implement multiple interfaces?
7. Exception Handling
41. What is an exception?
42. What is the difference between checked and unchecked exceptions?
43. What is the purpose of the try, catch, finally block?
44. What is the use of throw and throws?
45. Can we have multiple catch blocks?
46. What is the difference between final, finally, and finalize()?
8. Strings
47. What is the difference between String, StringBuffer, and StringBuilder?
48. Are Strings mutable in Java?
49. What is the string pool?
50. What is the difference between == and .equals() in strings?
9. Collections Framework
51. What is the Java Collections Framework?
52. What is the difference between List, Set, and Map?
53. What are the differences between ArrayList and LinkedList?
54. What is the difference between HashSet and TreeSet?
55. What is a HashMap?
56. What is the difference between HashMap and Hashtable?
57. What is the difference between Iterator and ListIterator?
58. What is the difference between Comparable and Comparator?
59. What is a Queue and how does it differ from a Stack?
60. How does ConcurrentHashMap differ from HashMap?
10. Multithreading and Concurrency
61. What is a thread?
62. What is the difference between process and thread?
63. How do you create a thread in Java?
64. What is the difference between Runnable and Thread?
65. What is synchronization in Java?
66. What are thread states in Java?
67. What is the use of wait(), notify(), and notifyAll()?
68. What is a deadlock?
69. What is the volatile keyword?
70. What are thread-safe classes?
11. Input/Output (I/O)
71. What is the difference between byte stream and character stream?
72. What is the use of BufferedReader and BufferedWriter?
73. How do you serialize an object in Java?
74. What is the difference between FileReader and FileInputStream?
75. What is the use of Serializable interface?
12. Java 8 Features
76. What are the new features in Java 8?
77. What is a lambda expression?
78. What is a functional interface?
79. What are method references?
80. What is the Stream API?
81. What is the Optional class?
13. Wrapper Classes and Autoboxing
82. What are wrapper classes?
83. What is autoboxing and unboxing?
84. Why are wrapper classes needed in Java?
14. Inner Classes and Anonymous Classes
85. What is an inner class?
86. What is an anonymous class?
87. What is a static nested class?
15. Miscellaneous & Advanced Concepts
88. What is the difference between == and equals()?
89. What is garbage collection in Java?
90. What are annotations in Java?
91. What is reflection in Java?
92. What is the use of the transient keyword?
93. What is the difference between shallow copy and deep copy?
94. What is the purpose of the instanceof operator?
95. What is the default value of instance variables?
96. What is the classloader in Java?
97. What is the final keyword used for?
98. Can we override the main method?
99. What is method hiding in Java?
100. How do you handle memory leaks in Java?

You might also like