Java Online Test

TestDome skill assessments are used by more than 8,000 companies and 880,000 test takers.

For Jobseekers

Practice your skills and earn a certificate of achievement when you score in the top 25%.

Take a Practice Test

For Companies

Test candidates with real-world problems and interview the best ones.

Sign Up to Offer this Test

About the test

The Java online test assesses knowledge of programming in the Java language and commonly used parts of the Java Class Library. This test requires solving live coding problems in Java.

The assessment includes work-sample tasks such as:

  • Working with classes, objects, and interfaces to write reusable code.
  • Using proper algorithms and data structures to optimize application performance.
  • Taking advantage of the Java Class Library.

A good Java developer needs a solid understanding of the Java programming language as well as the Java Class Library and its functionality to write robust and maintainable code.

Sample public questions

Easy
10 min
code
Public
Java
Interfaces
Inversion of Control
Refactoring

Refactor the AlertService and MapAlertDAO classes:

  • Create a new package-private interface, named AlertDAO, that contains the same methods as MapAlertDAO.
  • MapAlertDAO should implement the AlertDAO interface.
  • AlertService should have a public constructor that accepts AlertDAO.
  • The raiseAlert and getAlertTime methods should use the object passed through the constructor.
Easy
10 min
code
Public
Java
Arrays

Implement the uniqueNames method. When passed two arrays of names, it will return an array containing the names that appear in either or both arrays. The returned array should have no duplicates.

For example, calling MergeNames.uniqueNames(new String[]{'Ava', 'Emma', 'Olivia'}, new String[]{'Olivia', 'Sophia', 'Emma'}) should return an array containing Ava, Emma, Olivia, and Sophia in any order.

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the Java test with public questions.

Take a Certification Test

Sample silver certificate

Sunshine Caprio

Java and SQL
TestDome
Certificate
TestDome logo icon

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

59 more premium Java questions

Document Store, Driver Exam, Shipping, Chain Link, Document Counter, Hobbies, Node, Paragraph, Product, Snapshot, Snow Storm, Username, Utilities, Weighted Average, Shining Star, Mock Library, Kilometer Converter, Crop Ratio, Integer Utilities, Procedural Generator, Config Element, Stack to List, Fire Dragon, Log Parser, String Occurrence, Worker, Racer, Segment, Ceramic Store, Patient Class, Shelf Test, Read Write Execute, Read First Line, Max Sum, Platformer, Unique Numbers, Book Sale, Friend, Stories, Moving Total, Internal Nodes, Unique Product, Date Transform, Action Stack, Reward Points, Tiles, New Folder, Animal Hierarchy, Tax Calculator, Veterinarian, Numbers to Text, Wheel Defects, Paper Strip, Flight Connections, Vectors, Special Actions, Car Rental, Language Teacher, Test Results.

Skills and topics tested

  • Java
  • Bug Fixing
  • Language
  • Exceptions
  • Arithmetic
  • Linked List
  • OOP
  • Refactoring
  • HashMap
  • Iteration
  • Lists
  • Recursion
  • Tree
  • Regex
  • Strings
  • Accessibility Levels
  • ArrayList
  • Class Modifiers
  • TDD
  • Dynamic Proxy Classes
  • Inheritance
  • Method Overriding
  • Integer Division
  • Performance Tuning
  • Random
  • Generics
  • Complexity
  • Stack
  • Higher Order Function
  • Interfaces
  • Serialization
  • XML
  • Stream
  • Memory Management
  • Multithreading
  • Synchronization
  • Abstract Class
  • Test Case Design
  • Unit Testing
  • Algorithmic Thinking
  • Data Structures
  • Sorting
  • Graphs
  • Dynamic Programming
  • HashSet
  • Arrays
  • Classes
  • Objects
  • Queue
  • StringBuilder
  • Stream API

For job roles

  • Back-End Developer
  • Java Developer
  • Web Developer

Sample candidate report

What others say

Decorative quote

Simple, straight-forward technical testing

TestDome is simple, provides a reasonable (though not extensive) battery of tests to choose from, and doesn't take the candidate an inordinate amount of time. It also simulates working pressure with the time limits.

Jan Opperman, Grindrod Bank

Product reviews

G2 - Crowd Badge
G2 - High Performer (2022)
Capterra - 4.5 Stars
Capterra - Shortlist (2022)

Used by

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

90+ skills

From JavaScript and SQL to English and customer support. See all questions to filter by skill.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works

1

Choose a pre-made test
or create a custom test

2

Invite candidates via
email, URL, or your ATS

3

Candidates take
a test remotely

4

Sort candidates and
get individual reports