Free test template · Developer screening

Java developer test for hiring

Java experience ranges from university assignments to large production systems. A short test shows which end of that range a candidate is on.

12 ready-made questions · Edit everything · Free plan, no card needed

Sample questions from this template

  1. Question 1 · Single choice
    What is the difference between == and .equals() when comparing two String objects?
    They are identical
    == compares references; .equals() compares contents
    .equals() compares references; == compares contents
    == cannot be used with objects
  2. Question 2 · Single choice
    Which collection does NOT allow duplicate elements?
    ArrayList
    LinkedList
    HashSet
    An array
  3. Question 3 · Single choice
    What happens when you call a method on a variable that is null?
    It returns null
    A NullPointerException is thrown
    The method is skipped
    The compiler always catches it

Answer keys and explanations are included when you import the pack into your question bank.

Why test Java skills before you hire?

Java is everywhere in enterprise software, Android and back-end services, so it appears on CVs from almost every computing graduate. Experience levels vary enormously. Some applicants know how equals and hashCode behave in a map and why a shared counter goes wrong under load; others have only written exercises. A consistent screen tells you this before your senior developers commit to an hour-long interview.

What this template covers

How to run it well

Give twelve questions 15 minutes. That is enough for anyone who knows the material and too little to look everything up. A 65% pass mark suits graduates and juniors; for mid-level and senior back-end engineers, set it nearer 75% and add questions on streams, generics and your frameworks.

Shuffle questions and options so candidates cannot compare answer orders. Focus your review on the concurrency and collection questions, since these are the mistakes that appear in production rather than in code review. Discuss any wrong answers in the technical interview; how someone reasons through their mistake tells you a lot.

Who this test is for

Use it for Java back-end developers, Spring developers, Android developers working in Java, graduate software engineers and QA automation engineers who write Java tests. Outsourcing firms can use it to verify contractor skills before a client engagement. Because it avoids frameworks, it is fair for candidates who learnt Java in banking, telecoms, government or start-up environments, where the libraries differ a lot but the language underneath is the same. That makes scores comparable across very different CVs.

Make it yours

Add questions for your stack, such as Spring Boot, JPA and Hibernate, Maven or Gradle, or the Java version you run. Kotlin teams can add a few interoperability questions. You can ask the AI generator for more on streams or generics and review every answer before candidates see it. Snippets with a subtle bug, such as a mutable object used as a map key, work especially well as hard questions. Keep every snippet short enough to read without scrolling, and state the Java version if the answer depends on it.

Frequently asked questions

How long should a Java test be?

Twelve to fifteen questions in about 15 minutes makes a good screen. Use a coding exercise or code review for candidates who pass.

Can candidates cheat?

Each candidate can receive a random set of questions with shuffled options, a timer and a full-screen lock, and leaving the test is recorded. Answers are checked on the server and never reach the browser.

Does the test cover Spring?

No, it covers core Java that applies to any framework. Add Spring or other framework questions to your copy for those roles.

Send your first java developer test today.

Import all 12 questions, set a timer and pass mark, and share a link in about two minutes.

Use this template free

More test templates

All 60 test templates