Skip to content

Commit 34457d7

Browse files
committed
update
1 parent 513928b commit 34457d7

3 files changed

Lines changed: 86 additions & 2 deletions

File tree

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ <h3>Beginner ---> Advance </h3>
183183
</li>
184184
</ul>
185185
</section>
186+
<section>
187+
<button class="dropdown-btn" style="background-color:rgb(16, 217, 16);"><a href="#interviewquestions/" onclick="loadContent('interviewquestions/')">Interview Questions</a>
188+
</section>
186189
</nav>
187190
<div class="join-community-wrapper">
188191
<a href="http://github.com/techquanta" class="join-community" target="_blank">

interviewquestions/index.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# `Java Interview Questions`
2+
---
3+
<br/>
4+
5+
## `Core Java & OOPs`
6+
<br/>
7+
8+
#### Q1. What are the features of Java?
9+
#### Q2. Explain the OOPs concepts in Java.
10+
#### Q3. Provide examples of method overloading and method overriding.
11+
#### Q4. What is the difference between `final` and `static` keywords in Java?
12+
#### Q5. Is Java purely object-oriented? Explain Java's nature.
13+
#### Q6. What is the difference between ArrayList and Array in terms of efficiency and memory?
14+
#### Q7. Differentiate between HashMap, Hashtable, and HashSet.
15+
#### Q8. Can we override the `equals()` method or the `==` operator in Java?
16+
#### Q9. What is the difference between `throw` and `throws`?
17+
#### Q10. Explain abstraction, abstract class, and interface.
18+
#### Q11. Provide an example of using packages in Java.
19+
#### Q12. Share useful Java code snippets.
20+
#### Q13. What is the difference between runtime and compile-time polymorphism?
21+
#### Q14. What is the difference between JavaScript and Java?
22+
#### Q15. What is the difference between HashSet and HashMap?
23+
#### Q16. Why did you choose Java?
24+
#### Q17. Can we print anything before the execution of the `main()` function?
25+
#### Q18. Explain the keywords used in Java.
26+
#### Q19. What is the Collection Framework in Java?
27+
#### Q20. Provide a string-based coding question and solve it using the Collection Framework.
28+
#### Q21. What are the functions of ArrayList in Java?
29+
#### Q22. Common string coding questions.
30+
#### Q23. Common array coding questions.
31+
#### Q24. What is multithreading in Java?
32+
#### Q25. What is the difference between function overloading and function overlapping?
33+
#### Q26. What is a wrapper class in Java?
34+
#### Q27. Explain the Object class in detail.
35+
#### Q28. What is JDBC? Write the connection code.
36+
#### Q29. How does JSP and Servlet work? Explain how you implemented Servlet in your project.
37+
#### Q30. What is the difference between cookies and HttpSession?
38+
#### Q31. Explain your project.
39+
#### Q32. Do you have any internship experience? Explain in detail about your internship and the projects you worked on.
40+
#### Q33. Write pseudo-code for the following problems:
41+
- 3 string problems
42+
- 1 circular linked list problem
43+
- 2 array problems
44+
45+
#### Q34. Why did you prefer Python over Java?
46+
#### Q35. Which language is better: Java or Python? What are the advantages of using Python?
47+
48+
<br/>
49+
50+
## `JVM, Memory Management & Classpath`
51+
52+
<br/>
53+
54+
#### Q36. What is the Java Virtual Machine (JVM)?
55+
#### Q37. What is the Java Memory Model?
56+
#### Q38. Explain the different memory areas allocated by JVM.
57+
#### Q39. What are the roles of Heap and Stack memory in Java?
58+
#### Q40. What is PermGen (or Metaspace in Java 8+)?
59+
#### Q41. What is garbage collection in Java and how does it work?
60+
#### Q42. What are strong, weak, soft, and phantom references in Java?
61+
#### Q43. How do you analyze memory leaks in a Java application?
62+
#### Q44. What tools do you use to monitor or profile JVM memory usage?
63+
#### Q45. Explain the lifecycle of a Java object in memory.
64+
#### Q46. How does Java handle `OutOfMemoryError` and `StackOverflowError`?
65+
#### Q47. What is escape analysis and how does it impact memory allocation?
66+
#### Q48. What is the difference between `System.gc()` and actual garbage collection?
67+
68+
69+
<br/>
70+
71+
## `Classpath & Compilation`
72+
<br/>
73+
74+
75+
#### Q49. What is classpath in Java?
76+
#### Q50. How do you set classpath in Java (Windows/Linux)?
77+
#### Q51. What is the difference between classpath and path variables?
78+
#### Q52. What happens if the classpath is set incorrectly?
79+
#### Q53. Can a Java application run without setting the classpath?
80+
#### Q54. What are the best practices for managing classpath in large projects?
81+

styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ body {
202202
#menu-toggle {
203203
background: transparent;
204204
border: none;
205-
height :50px;
206-
width :50px;
205+
height :30px;
206+
width :30px;
207207
cursor: pointer;
208208
transition: transform 0.3s ease-in-out;
209209
position: fixed;

0 commit comments

Comments
 (0)