リンクを新しいタブで開く
    1. Explain the difference between Checked and Unchecked Exceptions in Java.

    2. Describe the Singleton Design Pattern and how to implement it in a thread-safe manner.

    3. Write a program to implement a thread-safe LRU Cache using LinkedHashMap.

    4. Explain Garbage Collection in Java and differentiate between Minor GC and Major GC.

    5. How does Java handle memory leaks, and what tools can you use to detect them?

    6. Write a Java program to find the first non-repeating character in a string.

    7. Explain the difference between HashMap and ConcurrentHashMap. When would you use one over the other?

    8. Write a program to serialize and deserialize a Java object.

    9. How would you implement a Producer-Consumer problem using wait() and notify()?

    10. Explain the difference between Comparable and Comparator interfaces. Provide a use case for each.

    11. Write a Java program to find the kth smallest element in a Binary Search Tree (BST).

    12. What is the difference between fail-fast and fail-safe iterators? Provide examples.

    13. Write a program to detect a cycle in a directed graph using Depth-First Search (DFS).

    14. Explain the difference between ArrayList and LinkedList. When would you use one over the other?

    15. Write a Java program to implement a thread-safe Singleton using Double-Checked Locking.

    16. How does Java handle multithreading on a single-core CPU?

    17. Write a program to reverse a linked list using recursion.

    18. Explain the difference between HashSet and TreeSet. When would you use each?

    19. Write a Java program to find the maximum path sum in a binary tree.

    20. Explain Java's Stream API and how it differs from traditional collections.

    21. Write a program to convert an infix expression to postfix using a stack.

    22. How does Java's Garbage Collector work? Explain the role of the Eden, Survivor, and Old Generation spaces.

    23. Write a program to implement a custom thread pool in Java.

    24. Explain the difference between synchronized blocks and the Lock interface.

    25. Write a Java program to merge two sorted arrays into a single sorted array.

    26. What is the difference between Callable and Runnable in Java?

    27. Write a program to find the intersection of two arrays.

    28. Explain the difference between HashMap and TreeMap. When would you use one over the other?

    29. Write a Java program to find the maximum subarray sum using Kadane’s Algorithm.

    30. Explain the difference between static and dynamic binding in Java.

    31. Write a program to implement the quicksort algorithm.

    32. How does Java handle deadlocks, and how can you avoid them?

    33. Write a program to find all permutations of a given string.

    34. Explain the difference between ArrayBlockingQueue and LinkedBlockingQueue.

    35. Write a Java program to rotate a matrix by 90 degrees clockwise.

    36. What is the difference between volatile and synchronized in Java?

    37. Write a program to find the number of islands in a 2D grid.

    38. Explain the difference between HashMap and LinkedHashMap.

    39. Write a program to validate a binary search tree (BST).

    40. How would you implement a custom annotation in Java? Provide an example.

    フィードバック
    ありがとうございました!詳細をお聞かせください
  1. Java Interview Questions and Answers - GeeksforGeeks

    • さらに表示

    2025年12月10日 · Java is the most used language in top companies such as Uber, Airbnb, Google, Netflix, Instagram, Spotify, Amazon, and many more because of its features and performance. In this …

  2. 120 Important Java Interview Questions and Answers …

    2026年1月12日 · Prepare for your Java interview with these common questions and answers from beginner to experienced level. Learn about Java concepts, …

  3. 100+ Java インタビューの質問と回答 (2026) - Guru99

    2024年11月22日 · Java では、定数はキーワード Final を使用して宣言されます。 値を割り当てることができるのは XNUMX 回だけであり、割り当て後は定数の値を変更することはできません。 以下の …

  4. Top 42 Java Coding Interview Questions and Answers (2025)

    2025年1月10日 · Learn these top 42 Java coding interview questions and answers to crack your interviews and land a job as a Java developer.

  5. Java Coding Interview Questions and Answers - Tpoint …

    2025年3月17日 · Whether you are preparing for campus placements or looking to switch to a better role, having a solid grasp of Java programming concepts is …

  6. 60+ Java Interview Questions and Answers [Updated …

    3 日前 · Explore our most asked Java Interview Questions and answers curated by top industry experts to help you crack your next Java developer interview.

  7. 150+ Core Java Interview Questions and Answers

    2024年3月11日 · Prepare for Java interviews with this comprehensive guide that covers basic, core, and advanced concepts. Find answers to common questions …

  8. The 80 Top Java Interview Questions and Answers

    You'll find a compilation of 80 key Java interview questions, with a focus on Core Java concepts, Object-Oriented Programming (OOP), and more advanced topics …

  9. 180+ Java Interview Questions and Answers - Simplilearn

    2026年2月16日 · Explore 180+ core Java interview questions and expert answers to help you prepare confidently for 2025 Java developer roles.

  10. 他の人も質問しています
    Loading
    Unable to load answer
このサイトを利用すると、分析、カスタマイズされたコンテンツ、広告に Cookie を使用することに同意したことになります。サード パーティの Cookie に関する詳細情報|Microsoft のプライバシー ポリシー