Tests4Geeks Skills Test
Java Online Testing
Test Programming Skills & Knowledge

Java Programming Test

Total 20 Questions, Maximum 50 Minutes, For Mid Level Programmers

Online test includes:

Java  -  20 Questions

  • Object-Oriented Programming (OOP)
  • Data Structures and Algorithms
  • References
  • Generics
  • Miscellaneous: Java Basics, Garbage Collection, Threading, Exceptions

Carefully Crafted by Professionals

Sample Question

Which of the following Java classes effectively prevent other classes from modifying their internal data? (Check all that apply.)

Note that for the purposes of this question, neither reflection nor bytecode manipulation may be used to modify another class.


Answer 1
Answer 2
Answer 3
Answer 4
Answer 5

The correct answers are 4 and 5.


Immutability is tricky in Java. To achieve it, you must:

  • Not expose any mutators (setters)
  • Protect your Java class from being subclassed
  • Make sure all mutable data you expose is either immutable or a defensive copy


1. Is every candidate given the same questions?

Yes, as a matter of necessity.

All candidates are given the same Java exam questions in order to make a fair comparison between them. If candidates were given different questions, there would be no way of making sure that each individual test is of the same difficulty.

However, the order of the questions and answers in the test is shuffled for each test.

2. How should I interpret the exam scores?

When you use this technical test, you need to keep one rule of thumb in mind:

This Java online test is not designed to help you identify the best candidates.

It's designed to help you avoid the worst ones.

Let's say you give 5 candidates our Java interview test and they get scores of 25, 40, 60, 65 and 80, based on a maximum possible score of 100.

Obviously the one who got 80 did the best on the test, so they're the one you should invite to an interview...


Wrong – it's better to invite the top three to an interview (the 60, 65, and 80).

When you hire a developer, you need to weigh several factors on top of their skills and knowledge.

Hiring a "genius programmer" won't help you much if they have no real development experience or don't work well in a team.

The bottom line is, don't base your hiring decisions on Java programming test results alone!

3. Java Quiz vs Coding Test

Our Java test has a multiple-choice format, i.e. it's quiz.

Instead of writing code, users choose answers from a set of pre-written options.

Though we're well aware some of our clients might prefer a Java coding test, simple logistics keeps us from implementing such a thing: there are so many different ways to write functional (but not necessarily good!) code that we'd have to check all answers manually.

However, we do intend to add a feature where customers will be able to add their own custom write-in questions.

This way, you can screen candidates using both our Java quiz and written answers to the questions you create.

Be sure to contact us with any questions or feedback you might have about this feature!

4. What level of skill is it intended for?

Our Java skills test was made for mid-level developers; however, it can be used to test junior and senior programmers as well.

Of course, if you use it to test junior programmers, you need to reduce your acceptance score to compensate.

Likewise, for senior Java programmers, you should increase your acceptance score.