Top 50 java Interview Questions
The most frequently asked java questions across all roles and companies, ranked by real interview frequency. Updated daily.
Use a hash table to count character frequencies and return duplicate characters in first-appearance order.
PlayStation
St. Charles Trading
ChubbDetermine whether an integer reads identically forward and backward using digit arithmetic and constant extra space.
Broadcom
Brillio
Deutsche BankDetermine whether an integer is prime using square-root bounds and parity-based optimization.
Principal Financial Group
TavantReverse each word independently while preserving whitespace characters, runs, positions, and word order.
TripadvisorImplement deep cloning for nested arrays and objects using recursion and cycle detection.
McKinsey &Detect a cycle in a Design Compiler dependency chain using linked-list pointers or graph traversal.
Micro1
SynopsysDesign an immutable Employee that safely encapsulates a separately mutable Address through defensive copying.
GloballogicSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Rank active HSBC employees by division and return every employee tied for the highest or second-highest salary.
HsbcCompare normalized character signatures to determine whether each pair of strings is an anagram.
AdobeCalculate the sum of integers from 1 to 1,000,000 using PostgreSQL aggregation and filtering.
Virtu Financial