0% found this document useful (0 votes)
25 views5 pages

100 Interview Questions On Java Language

The document lists 100 interview questions on Java language topics ranging from OOP concepts to concurrency. The questions cover classes, interfaces, exceptions, threads, collections, I/O and security.

Uploaded by

lekhak2024
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
25 views5 pages

100 Interview Questions On Java Language

The document lists 100 interview questions on Java language topics ranging from OOP concepts to concurrency. The questions cover classes, interfaces, exceptions, threads, collections, I/O and security.

Uploaded by

lekhak2024
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 5

Intern Crowd LLP

100 interview questions on Java language

1. What is the difference between an Interface and an Abstract class?


2. What are the main features of Java?
3. What is the purpose of garbage collection in Java, and when is it
used?
4. What is the difference between a constructor and a method?
5. What is the difference between an applet and a servlet?
6. What is the difference between a ClassNotFoundException and a
NoClassDefFoundError?
7. What is the difference between a static and a non-static inner class?
8. What is the difference between a thread and a process?
9. What are the different ways of creating a thread?
10. What is synchronization and why is it important?
11. What is the difference between a StringBuffer and a StringBuilder?
12. What are the different access specifiers for Java classes?
13. What is an abstract class?
14. What is the difference between an abstract class and an interface?
15. What is the difference between a static and a non-static method?
16. What is the difference between a public and a private method?
17. What is the purpose of the finally clause of a try-catch-finally
statement?
18. What is the purpose of the System class?
19. What is a native method?
20. What is the difference between a while statement and a do-while
statement?
21. What is encapsulation?
22. What is a package?
23. What is the difference between a static and a non-static variable?

www.interncrowd.in
Intern Crowd LLP
100 interview questions on Java language

24. What is the difference between a checked and an unchecked


exception?
25. What is the purpose of the java.lang.Object class?
26. What is the difference between a String and a StringBuffer?
27. What is a final variable?
28. What is the purpose of a constructor?
29. What is the difference between a static and a non-static block?
30. What is the difference between a break statement and a continue
statement?
31. What is the purpose of the super keyword?
32. What is the difference between a class and an object?
33. What is the difference between a path and a classpath?
34. What is the purpose of the transient keyword?
35. What is the difference between an instance variable and a local
variable?
36. What is the purpose of the volatile keyword?
37. What is the difference between an abstract class and a concrete
class?
38. What is the purpose of the finalize() method?
39. What is the purpose of the static keyword?
40. What is the purpose of the assert keyword?
41. What is the purpose of the transient keyword?
42. What is the difference between a HashMap and a Hashtable?
43. What is the difference between an ArrayList and a Vector?
44. What is the difference between a for loop and a while loop?
45. What are the different types of statements in Java?
46. What is the difference between a JDK and a JRE?
47. What is the difference between a JVM and a JRE?

www.interncrowd.in
Intern Crowd LLP
100 interview questions on Java language

48. What are the different scopes of a variable?


49. What is the purpose of the finally block in a try/catch statement?
50. What is the purpose of the volatile keyword?
51. What is the purpose of the final keyword?
52. What are the differences between a shallow copy and a deep copy?
53. What is the difference between an interface and a class?
54. What is the difference between a public and a non-public class?
55. What is the difference between a final, finally and finalize?
56. What is the purpose of the instanceof keyword?
57. What is the purpose of the transient keyword?
58. What are the different access modifiers in Java?
59. What is the purpose of the synchronized keyword?
60. What is the difference between a String and a StringBuffer?
61. What is the purpose of the System class?
62. What is the purpose of the Runtime class?
63. What is the difference between a Statement and a
PreparedStatement?
64. What is the purpose of the java.lang.Class class?
65. What is the purpose of the java.lang.Object class?
66. What is the difference between a constructor and a method?
67. What is the difference between a static and a non-static method?
68. What is the purpose of the Math class?
69. What is the difference between a static and a dynamic binding?
70. What is the purpose of the java.util.Date class?
71. What is the purpose of the java.io.File class?
72. What is the purpose of the java.io.Reader class?
73. What is the purpose of the java.io.Writer class?

www.interncrowd.in
Intern Crowd LLP
100 interview questions on Java language

74. What is the purpose of the java.util.Iterator interface?


75. What is the purpose of the java.util.List interface?
76. What is the purpose of the java.util.Set interface?
77. What is the difference between a shallow copy and a deep copy?
78. What is the purpose of the java.lang.Cloneable interface?
79. What is the difference between a break statement and a continue
statement?
80. What is the difference between a throw statement and a throws
clause?
81. What is the difference between a checked exception and an
unchecked exception?
82. What is the purpose of the java.lang.Exception class?
83. What is the purpose of the java.lang.RuntimeException class?
84. What is the purpose of the java.lang.Error class?
85. What is the purpose of the java.lang.AssertionError class?
86. What is the purpose of the java.lang.Thread class?
87. What is the purpose of the java.lang.Runnable interface?
88. What is the purpose of the java.lang.ClassLoader class?
89. What is the purpose of the java.net.URL class?
90. What is the purpose of the java.security.Permission class?
91. What is the purpose of the java.security.Principal interface?
92. What is the purpose of the java.util.concurrent.Executor interface?
93. What is the purpose of the java.util.concurrent.Executors class?
94. What is the purpose of the java.util.concurrent.Future interface?
95. What is the purpose of the java.util.concurrent.Callable interface?
96. What is the purpose of the java.util.concurrent.locks.ReentrantLock
class?
97. What is the purpose of the java.util.concurrent.atomic package?

www.interncrowd.in
Intern Crowd LLP
100 interview questions on Java language

98. What is the purpose of the java.util.concurrent.atomic.AtomicInteger


class?
99. What is the purpose of the java.util.concurrent.atomic.AtomicLong
class?
100. What is the purpose of the
java.util.concurrent.atomic.AtomicReference class?

www.interncrowd.in

You might also like