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

Java Coding Questions Preparation

The document outlines a comprehensive list of Java Full Stack interview coding questions categorized into various topics such as String Problems, Array Problems, HashMap & Collections, Linked List, Stack & Queue, Sliding Window, SQL Questions, Java 8 Streams, Multithreading, and Machine Coding. It also highlights the top 30 must-do questions for candidates with 9+ years of experience. Key areas include algorithms, data structures, SQL queries, and REST API design.

Uploaded by

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

Java Coding Questions Preparation

The document outlines a comprehensive list of Java Full Stack interview coding questions categorized into various topics such as String Problems, Array Problems, HashMap & Collections, Linked List, Stack & Queue, Sliding Window, SQL Questions, Java 8 Streams, Multithreading, and Machine Coding. It also highlights the top 30 must-do questions for candidates with 9+ years of experience. Key areas include algorithms, data structures, SQL queries, and REST API design.

Uploaded by

karthikbk.work
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Java Full Stack Interview Coding Questions (9+

Years Experience)
1. String Problems
Reverse string, palindrome, anagram, duplicate characters, first non-repeated character, longest
substring without repeating chars, valid parentheses, longest common prefix.

2. Array Problems
Second largest element, move zeros, merge sorted array, missing number, duplicate number,
Kadane algorithm, Two Sum, stock buy/sell, majority element.

3. HashMap & Collections


Frequency count, duplicates, first unique element, group anagrams, sort map by value, LRU cache
concept, top K frequent elements.

4. Linked List
Reverse linked list, detect loop, middle node, merge linked list, palindrome linked list.

5. Stack & Queue


Valid parentheses, stack using queue, queue using stack, min stack, next greater element.

6. Sliding Window
Longest substring without repeating chars, max sum subarray of size K, longest consecutive ones.

7. SQL Questions
Second highest salary, nth highest salary, duplicate records, delete duplicates, joins, window
functions, ranking, CTE, indexing, query optimization.

8. Java 8 Streams
Second highest salary, group by department, count occurrences, remove duplicates, flatten nested
list, average salary.

9. Multithreading
Producer consumer, deadlock, thread-safe singleton, executor service, callable vs runnable,
completable future.

10. Machine Coding


REST API design, CRUD APIs, pagination, JWT authentication, exception handling, cache
implementation.
Top 30 Must-Do Questions
Two Sum, Reverse String, Palindrome, Anagram, Move Zeros, Merge Arrays, Kadane, Valid
Parentheses, Reverse Linked List, Detect Loop, Frequency Count, SQL Salary Questions, Java
Streams, CompletableFuture, REST API design.

You might also like