Skip to content

Java programming interview questions and Java programming tests

The ready-to-use DevSkiller online Java programming tests are widely used for technical screening and online interviews. They help tech recruiters and HR managers to select Java developers with the right skill set for on site interviews and screen out the bad ones.

DevSkiller programming tests comprise Java programming interview questions and Java programming tests. All DevSkiller coding tests are powered by RealLifeTesting™ methodology.

If you’re looking for sample Java programming interview questions and tests to assess your candidates, start a free trial or log into your account.

Try these other related coding tests:
Core Java online coding tests & interview questions
REST online coding tests & interview questions
JPA online coding tests & interview questions
Hibernate interview questions
Spring online tests for interviewing and screening developers
Groovy online tests and interview questions
Android interview questions and tests

Technologies covered:

Programming language: Java

Java frameworks and libraries: Spring framework, Spring boot, Hibernate, JPA, GWT, JSF, Vaadin, Play framework Groovy, SpockFramework, JUnit, TestNG and others

Build tools: Maven, Gradle.

Java
SENIOR
Tested skills
Duration
111 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java, Core Java, I/O system, Lambda Expressions, Exceptions

Code gaps

assessing knowledge of Java, Core Java, I/O system, Lambda Expressions, Network Communication

Programming task - Level: Hard

Java | Library application - Create an application that allows the library to manage books, their borrowings and prepare some reports about books that were not returned on time. Finish implementation of the missing service methods.

junit
MIDDLE
Tested skills
Duration
64 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of JUnit, QA

Code gaps

assessing knowledge of JUnit, JUnit4, QA, JUnit 5, Java

Programming task - Level: Medium

QA | JUnit | ATM Service | Authentication and deposit validation - Write test cases to verify the Automated Teller Machine (ATM) software.

Java
MIDDLE
Tested skills
Duration
75 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Core Java, Java, Serialization, Date and Time, Generics

Code gaps

assessing knowledge of Core Java, Java, Memory Management, Network Communication, Lambda Expressions

Programming task - Level: Medium

Java | Library application - Creating an application allowing the library to manage books and their borrowings. Your current task is to finish the implementation of missing service methods.

java
MIDDLE
Tested skills
Duration
58 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Core Java, Java, Stream API, I/O system, Date and Time

Code gaps

assessing knowledge of Core Java, Java, Network Communication

Programming task - Level: Medium

Java | Azure | Production summarizer - Create an Azure function. Your current task is to finish implementation of production summarizer returning information about how many cars were produced by a particular plant.

Java
MIDDLE
Tested skills
Duration
104 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java, Spring Boot

Code gaps

assessing knowledge of Core Java, Exceptions, Java, Generics, I/O system

Programming task - Level: Medium

Java | Couchbase, Spring Boot | Card Payments - Create a card payment processing microservice. Finish the implementation of saving payment data into Couchbase and communicate with other services.

Java
JUNIOR
Tested skills
Duration
49 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Core Java: Network Communication, Generics, Memory Management

Code gaps

assessing knowledge of Core Java: Collections, Memory Management, Generics

Programming task - Level: Easy

Java | Currency Exchange - Complete the implementation of the Currency Exchange app, which is responsible for managing exchange rates and exchanging the currencies.

Java
JUNIOR
Tested skills
Duration
37 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java, Core Java, Lambda Expressions, Memory Management

Code gaps

assessing knowledge of Core Java, Java, Memory Management, collections, Lambda Expressions

Programming task - Level: Easy

Java | Library Application - Creation of an application allowing the library to manage their books stock. Task goal is to finish the implementation of missing service methods.

junit
MIDDLE
Tested skills
Duration
66 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of QA, Testing, Unit-Testing, Manual Testing

Code gaps

assessing knowledge of JUnit 5, Java, QA

Programming task - Level: Medium

QA | JUnit | ATM Service | Authentication and deposit validation

Selenium
MIDDLE
Tested skills
Duration
48 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of QA, Selenium, .NET, C#

Code gaps

assessing knowledge of Java, QA, Selenium

Programming task - Level: Medium

QA | .NET, Selenium | Data extraction - Implement methods in class SeleniumTask.SeleniumExecutor to pass successfully all tests.

junit
MIDDLE
Tested skills
Duration
73 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java and QA

Code gaps

assessing knowledge of Java and QA

Programming task - Level: Medium

QA | Java, JUnit | Vending Machine - Write unit tests for the verification of a Vending machine.

Java
MIDDLE
Tested skills
Duration
69 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of API, Java

Code gaps

assessing knowledge of Java, Java Stream API, Streams

Programming task - Level: Medium

Java | Standard Search Engine - Implement engine for product searching based on simple and compound predicates.

Java
SENIOR
Tested skills
Duration
78 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java

Code gaps

assessing knowledge of Java

Programming task - Level: Hard

Java | Precomputation Queue - Implement priority queue which will be used on several nodes to asynchronously precompute statistics about product sets.

Java
MIDDLE
Tested skills
Duration
97 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java

Code gaps

assessing knowledge of Java

Programming task - Level: Medium

Java | Precomputing Search Engine - Implement the optimized engine for the product search, based on the precomputation task to precompute the results for any set of the options.

Java
SENIOR
Tested skills
Duration
71 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java, Multithreading

Code gaps

assessing knowledge of MongoDB

Programming task - Level: Hard

Java | Circuit Breaker and Retry pattern - Implement circuit breaker, fallback and retry pattern in microservice architecture.

Android
SENIOR
Tested skills
Duration
48 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Android

Code gaps

assessing knowledge of Android, Java, ProGuard

Programming task - Level: Hard

Android | Java | ProGuard configuration - Implement the ProGuard Configuration to remove developer's code from the code base - at compile time.

Java
MIDDLE
Tested skills
Duration
39 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java

Code gaps

assessing knowledge of JUnit 5, Java, QA

Programming task - Level: Medium

Java | JUnit | Flight Manager - Implement the missing features into the application responsible for managing flights data.

Java
MIDDLE
Tested skills
Duration
57 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java, Spring Boot

Code gaps

assessing knowledge of PostgreSQL, SQL

Programming task - Level: Medium

Java | Spring Boot | Items Retriever Microservice - Implement a microservice to retrieve items from the shopping system.

Java
JUNIOR
Tested skills
Duration
39 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java, Spring Boot, JPA

Code gaps

assessing knowledge of Java

Programming task - Level: Easy

Java | Spring Boot with JPA queries - Implement SQL queries to find the best streaming platform.

Java
SENIOR
Tested skills
Duration
78 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of GIT

Code gaps

assessing knowledge of Java

Programming task - Level: Hard

Java | Internet Banking System Decryption Service - Implement methods related to cryptography.

Java
MIDDLE
Tested skills
Duration
47 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java, Spring Boot, Hibernate

Code gaps

assessing knowledge of Hibernate, Java, JPA

Programming task - Level: Medium

Java | Spring Boot, JPA | Repositories - Implement all methods in the ItemRepository class.

Java
JUNIOR
Tested skills
Duration
39 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Core Java, Java, Lambda Expressions, Memory Management

Code gaps

assessing knowledge of Core Java, Java, collections, Memory Management, Lambda Expressions

Programming task - Level: Easy

Java | Core Java | Time Service - Implement solutions based on your knowledge of Java Time API.

Java
MIDDLE
Tested skills
Duration
75 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Java and Spring Boot

Code gaps

assessing knowledge of Java and MongoDB

Programming task - Level: Medium

Java | MongoDB, Spring Boot | Flight searcher with MongoDB cache - Implement code that will be able to query multiple airlines for prices according to the client’s request.

The best roles for a Java software developer:

Recommended roles for Java programming tests include:

  • Web developer
  • Software developer
  • Java developer
  • UI developer
  • Application developer
  • Back end developer
  • Embedded developer

How our Online Java skill tests work

Using the RealLifeTesting™ methodology, DevSkiller’s Java programming interview questions help put your candidate in an environment to examine their coding skills. Give them access to all the tools they need to complete a range of tasks that they’d face regularly as a developer in your company.

Create deadlines and build a range of scenarios and tasks to help measure and asses your candidates’ problem-solving and technical thinking

Key features

  • Asses candidates’ Java development skills in an environment you’ve designed and measure their coding abilities, rather than academic credentials
  • Test Java developers anywhere in the world at any time of day with Java skill tests
  • A natural coding environment where your candidate has access to all the tools they have available in the job you’re hiring for
  • Automatically create a report that’s easy to read and comprehend for non-technical recruiters
  • Verify the integrity of your candidate’s work with robust and complex plagiarism controls

What to look for in a Java developer

Java is one of the most widely used coding languages out there. With such a versatile language, it’s important you know as much as you can about your Java developer. A Java developer that understands the tools of the trade, more than the language itself is a highly sought-after skill. This is because languages and frameworks are always changing, and what was being used only 5 years ago is obsolete by today’s standards

Java has its own range of certificates, but these are hardly reliable as they do little to assure a recruiter about a Java developer’s capabilities. That’s why it’s important that, alongside a traditional interview, you use an online Java skill test to check the skills that are specific to the position you’re recruiting for.

Find Java interview questions

Looking to find Java interview questions? DevSkiller Java tests include a wide variety of questions that are suited to any Java developer position. The Java programming language is constantly changing, which means having a wide range of current Java interview questions is vital to provide a complete understanding of the candidate’s abilities. It can be hard trying to find the best core Java interview questions that are suited to the specific role you need. That’s why each DevSkiller account comes with Java tests preloaded with real-world questions that can also be customized to suit the current position. This includes Java interview questions for experienced professionals.

Get ready for Java assessment test

As the Java environment is constantly changing, it’s even more important to get ready for a Java assessment test. This means making sure you understand the entire Java environment from its frameworks and tools to the Java language. DevSkiller tests speed up and smooth out this process by providing companies an infrastructure that lets them use their own codebase or our ready-to-use Java coding tests. When you get ready for the Java assessment test, it is important to remember that a developer may have a university degree, but this isn’t necessarily useful when it comes to business coding. Unless you recruit for an entry-level or junior position, the candidate needs to have recent real-life experiences such as commercial, hobby, or open-source programming.

You won’t need to worry when getting ready for a Java assessment test, as we include the most important core Java interview questions for junior positions to Java interview questions for experienced professionals.

Example Java programming interview questions

Finding the right example Java programming interview questions can be tiresome. The RealLifeTestingTM methodology is the foundation for all DevSkiller Java tests. It provides real-world situations for candidates so you can test the skills that a developer will use in their day-to-day work. This helps to provide a better understanding of the candidates’ abilities. Candidates also prefer this form of testing over typical example Java programming interview questions. It allows them to understand the position better and perform at their best. This method also offers Core Java interview questions as well as Java interview questions for experienced professionals.

Don’t see what you want?

Can’t find the online Java coding test you’re after? No worries. Use DevSkiller’s Task Wizard to create your very own coding test and give your candidate access to everything they need. Create a task that focuses on problems common in your business, test the right skills, and make the best hire.

Built-in Java IDE

To greater improve candidate experience during testing, Devskiller has now implemented a built-in Java IDE directly into the browser. Our already warmed up, ready to use Java IDE will reduce time during testing and increase the user experience for your candidates.

Candidates no longer have to clone the code, wait for the dependencies to install or indexes to build. They can literally start coding as soon as they open the test invitation. This unique feature is just one of the innovations setting DevSkiller TalentScore apart from the competition when it comes to developer screening.

Want to be sure that our Java programming interview questions and Java programming tests really work?

Knowing where to invest your business’s money is a big decision and not one that should be taken lightly. At DevSkiller, we’re sure that our Java programming interview questions are exactly what your company needs, but we’ll let some of our past customers do the talking instead:

Magdalena Rogóż – Deputy Marketing Manager at Kodilla

“Using DevSkiller to grade tests is 2 times more cost-efficient while giving our students a much better test and preparing them for future recruitment tests.”

Ivana Nikolic – HR Manager at ImpacTech

“The greatest advantage for the candidates is that they can proceed with the tests at their own convenience. In case you have a candidate who is already working and is thinking about changing the career or moving to another company, it is also a time saver for them, as they do not have to take time off in order to attend numerous interviews in the search for a new position.”

Victoria Cyczewska – Talent Acquisition Specialist at Stepstone Services

“We now have a tool which allows us to not only collaborate to create tests assessing technical skills we need to grow, but also to communicate internally and externally (with candidates). What is more, our technical recruitment process is now more structured. As an example, we use our technical screening results as a conversation starter during technical interviews.”

Frequently asked questions

What is RealLifeTestingTM?

The RealLifeTestingTM methodology is the foundation of all DevSkiller Java programming interview questions. RealLifeTestingTM differs from traditional coding tests and algorithm puzzles, by providing recruiters with a complete view of a developer’s skills. It’s based on the idea that the best way to challenge a Java developer is to provide them with work similar to that which they will do within their role. RealLifeTestingTM simulates the actual work environment of a Java developer and sets them tasks based on this simulation.

To be successful, developers need to demonstrate their knowledge of coding, be able to use resources like Stack Overflow and find solutions to the problems they encounter. The best candidates are those who can demonstrate their coding skills, decision making, code cleanliness, and problem-solving.

How long does it take to set up TalentScore Java programming interview questions and Java programming tests?

DevSkiller Java programming interview questions are very quick and easy to set up. Our IT experts have created a testing model that is designed to be efficient and easy to use- whether you’re a developer yourself or not. The DevSkiller platform comes packed full of ready-made Java programming interview questions, so all you need to do is set up an account and start sending out test invites.

Do I need to be a programmer to use DevSkiller?

Part of the aim of DevSkiller’s screening tool is that you don’t need to be an expert developer to be able to get the most out of it. Recruiting managers who have little, or no experience in software development can see for themselves how effective and time-saving our Java programming interview questions are. DevSkiller testing is as user-friendly as possible. Our test results are generated automatically and results are presented in a way that is easy to understand, even for non-technical recruiters. If you have someone technical available you can custom build your own tests and set your own specifications, or our default tests come ready to send.

What’s the test duration?

It’s important that you have as much control over your own recruitment process as possible. Therefore the duration of our tests is flexible and will depend on your needs. Each test comes with default settings, which can be altered if required. You can even set time limits for individual questions within a test if you need to.