Top 50
Topic roadmap
Updated weekly · Last refresh Nov 2

Top 50 java Interview Questions

The most frequently asked java questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~20htotal time
73companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
CodingStart here. 42 questions · ~1016 min
Find Duplicate Characters in StringEasy
Practice
Recently asked

Use a hash table to count character frequencies and return duplicate characters in first-appearance order.

Hash TablesjavaStringsPlayStationSt. Charles TradingChubb
Static Variable in ProgrammingEasy
Practice
Recently asked

Explain what a static variable is and how it behaves across function calls.

javaCodingbasicsHHartford HealthCare Medical GroupTThe Hartford IndiaGeneral Dynamics Mission Systems
Binary SearchEasy
Practice
Recently asked

Implement iterative binary search to find a target value in a sorted array using O(log n) time and O(1) space.

javabinary searchArraysT. Rowe PriceGRINPhonepe
Palindrome Number ImplementationEasy
Practice

Determine whether an integer reads identically forward and backward using digit arithmetic and constant extra space.

javaBasic AlgorithmsStringsBroadcomBrillioDeutsche Bank
Optimized Prime Number CodeMedium
Practice
Recently asked

Determine whether an integer is prime using square-root bounds and parity-based optimization.

javaPrincipal Financial GroupTavant
Reverse Words in a SentenceMedium
Practice
Recently asked

Reverse each word independently while preserving whitespace characters, runs, positions, and word order.

javastring manipulationArray ManipulationTripadvisor
Abstract Class Implementation Under ConstraintsHard
Practice
Recently asked

Implement a stack adapter using one queue interface while preserving LIFO behavior and constant auxiliary space.

javaCodingabstractionJane Street
Implement PolymorphismMedium
Practice
Recently asked

Use inheritance and method overriding to calculate total areas through a common Shape interface.

javaCodingabstractionSiemens
More Coding questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
2
SQL & Data Manipulation8 questions · ~194 min
More SQL & Data Manipulation questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.