Java interview questions

Want to become an expert in cracking Java interview questions?

Start with practicing the questions below. Whether a question involves multiple choice or live coding, we will give you hints as you go and tell you if your answers are correct or incorrect.

After that, take our timed public Java interview questions test.

To use our service for testing developers, purchase one of the paid plans for companies.


1. Palindrome
Java Strings Public

<p>A palindrome is a word t...
Easy  
10min
Solve question

2. UserInput
Java OOP Public

<p>User interface contains ...
Easy  
15min
Solve question

3. BinarySearchTree
Java Algorithmic thinking Data structures Public

<p><img src="/Files/Images/...
Easy  
20min
Solve question

4. TwoSum
Java Algorithmic thinking Searching Public

<p>Write a function that, g...
Easy  
30min
Solve question

5. Folders
Java Serialization Public

<p>Implement a function <em...
Hard  
20min
Solve question

6. SortedSearch
Java Algorithmic thinking Searching Public

<p>Implement function <em>c...
Hard  
20min
Solve question

7. TrainComposition
Java Algorithmic thinking Data structures Public

<p>A <em>TrainComposition</...
Hard  
20min
Solve question

8. Path
Java Data structures Strings Public

<p>Write a function that pr...
Hard  
30min
Solve question

If you feel ready, take one of our timed public Java interview questions tests:

  • HTML/CSS, JavaScript, Java, and SQL online test ( Easy  /  Hard )
  • HTML/CSS, JavaScript, SQL, and Java Algorithms online test ( Easy  /  Hard )
  • Java online test ( Easy  /  Hard )
  • Java Algorithms online test ( Easy  /  Hard )
  • Java and Android online test ( Easy  /  Hard )
  • Java and SQL online test ( Easy  /  Hard )
  • SQL and Java Algorithms online test ( Easy  /  Hard )
Not exactly what you are looking for? Go to our For developers section.