Zum Inhalt springen

Java interview questions and online tests

DevSkiller Java Coding Questions have been specially prepared by our expert team of professionals for Java developers- from junior to senior level. All of our Java coding tests are specifically tailored to ensure you find the perfect candidate, using a specific range of Java questions.

DevSkiller Java coding questions are powered by the RealLifeTesting™ methodology which works by replicating real-world scenarios for your applicants to solve. Finding your next Java developer is simple with our unique range of tests.

Technologies covered:

Programming language: Java

Java frameworks and libraries: Spring Framework, Spring Boot, Hibernate, JPA, GWT, JSF, Vaadin, Play Framework, Groovy, Spock Framework / JUnit, TestNG, Selenium and others

Build tools: Maven, Gradle

Android
MIDDLE
Tested skills
Duration
70 minutes max.
Evaluation
Automatic
Test overview

Choice questions

assessing knowledge of Android

Programming task - Level: Medium

Android | Auction platform anonymizer - Implement missing sections of the Auction platform and its privacy policy where certain data must be anonymized.

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

Choice questions

assessing knowledge of Java

Programming task - Level: Medium

Java | Spring Security | Secure POST - Secure an enterprise application by allowing the administrator only to call state changing endpoints.

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

Choice questions

assessing knowledge of Java

Programming task - Level: Easy

Java | Orders Analyzer | Find a total ordered quantity of a product for every weekday - Implement a method that will analyze orders dataset and return a map with total ordered quantity of a product for every weekday

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

Choice questions

assessing knowledge of Java

Programming task - Level: Easy

Java | Movies analyzer | Find top favorite movies among friends - Implement a method that will analyze movies dataset and return array of most favourited movies

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

Choice questions

assessing knowledge of Java

Programming task - Level: Medium

Java | Orders Analyzer | Find an average order value for every weekday - Implement OrdersAnalyzer#averageDailySales method that returns a map of days of a week and rounds the average value to the nearest integer.

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

Choice questions

assessing knowledge of Java, CleanCode

Programming task - Level: Medium

Spring Security - Secure methods to allow only the article author to create and read an article with his name, using method annotations.

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

Choice questions

assessing knowledge of Java, CleanCode, Spring, Hibernate, JPA

Programming task - Level: Easy

Java | Movies Analyzer | Find top watchlisted movies among friends - Implement a method that will return an array of top four movie titles, that have been most watchlisted by friends of a given user.

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

Choice questions

assessing knowledge of Java, CleanCode

Programming task - Level: Medium

Spring Security - Secure ArticleService so that it returns only those articles in locale that are equal to the one currenntly used.

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

Choice questions

assessing knowledge of Java, CleanCode

Programming task - Level: Medium

Java | Logs Analyzer | Count matching log file entries - Complete a method which counts the lines within a ZIP file matching search strings.

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

Choice questions

assessing knowledge of Java: General Terminology, General Knowledge, DriverManager, Input Variables, and String Handling

Programming task - Level: Easy

Java | Race Coordinator - Implement methods in Leg class, and implement methods in Race class following javadoc and unit tests.

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

Choice Questions

Verify knowledge of Java: Primitive Data Types, Logging, Reserved Words, interface defaults, concurrency, and **Environment Variables

Programming task

Write code to pass unit tests in a Java distributed configuration store

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

Choice Questions

Verify knowledge of Spring: Context, Dependency Injection, context hierarchy, and constructor-based injection

Choice Questions

Verify knowledge of Java: Command Prompt, Singletons, and Concurrent Maps

Programming task

Implement all methods in the ItemRepository class

Spring framework
MIDDLE
Tested skills
Duration
56 minutes max.
Evaluation
Automatic
Test overview

Choice Questions

Verify knowledge of Spring: constructor-based injection, context hierarchy, and Context, Dependency Injection

Choice Questions

Verify knowledge of Java: Collections, Concurrent Maps, and File Handling

Programming task

Implement the ParserService#parseString method in a Spring application

The right Java interview questions and online tests to screen Java developers

Recommended roles for our Java Interview Questions

  • Java developer
  • Junior QA developer
  • Frontend developer
  • Full-stack Java developer
  • Junior Java developer
  • Middle Java developer
  • Senior Java developer

How our Java interview questions and online tests work

Java tests use RealLifeTesting™ so you can assess each applicant’s knowledge of Java coding in a controlled environment. DevSkiller Java coding questions provide you with a clear understanding of an applicant’s coding ability and problem-solving skills.

Key features

  • DevSkiller Java coding questions provide you with clear insight into each applicant’s specific skillset
  • Remote testing saves you time and money
  • RealLifeTesting™ methodology offers a greater user experience where candidates can use their own IDE, clone to GIT, run unit tests, and access Stack Overflow/GitHub/Google for research.
  • The latest anti-plagiarism tools ensure reliable results
  • Clear, precise results that non-technical professionals will easily understand
  • Java coding tests available for all levels of experience

Skills covered in our Java interview questions and online tests

  • Springboot
  • Java
  • QA
  • Selenium
  • MongoDB
  • Mavern
  • Explicit Wait
  • Kotlin
  • REST

What to look for in a Java developer

Java is a compiled, object-oriented programming language. It is intended to let application developers “write once, run anywhere,” meaning that compiled Java code can run on all platforms that support Java, without the need for recompilation. However Java is not considered the easiest programming language to use for non-programmers, so you will want to hire the right Java developer for the job.

It is important to understand that the Java world evolves quickly so your ideal candidate will need to have up to date, relevant experience. Your Java developer will need to have an understanding of Java language through collections, “streams” and lambda expressions and concurrency through thread pools. They should have knowledge of frameworks including Spring Boot 2, Hibernate and SQL, JUnit, and Spock among others. As well as the language itself, your Java developer will also need to have knowledge of the tools and libraries of the language, such as Maven and Gradle, Git, and Docker – this will pay dividends in time-saving further down the line. Finally, your Java Developer should have hands-on, practical experience of working on actual coding projects, be it commercial or otherwise.

Build your own custom Java Coding Questions

Do you want to test our Java Coding Questions using your own codebase? No problem. The DevSkiller online task wizard is stacked with awesome features that allow you to customize your test invites. Choose the languages you want to test, define the test scope, and duration all while monitoring your applicants’ process in real-time. Remote testing means you can conveniently test your applicants and find the best talent from all corners of the globe.

Interested but want to know more about our Java online tests?

If you think DevSkiller might be just what your business needs, but you want to be sure, check out the case study below:

Ada Health

Ada Health is a global health company founded by doctors, scientists, and industry pioneers to create new possibilities for personal health. The company previously screened tech skills through an on-site task, followed by a team interview- a procedure that required a great deal of time. For this reason, the biggest objective Ada had was an improved interview experience that would save time.

“DevSkiller helped us to save precious on-site time for applicants that are already likely to be a fit. We’re saving 3 hours per candidate – that was the time we spent with applicants on a technical task before.”

Micha Gerwig– Engineering Manager Ada Health

Frequently asked questions

How are Java online tests evaluated?

With our Java online tests, once the candidate has completed the test, the results are automatically evaluated and presented in a clear and concise way. You don’t have to be technically minded to understand them. Each candidate is evaluated based on the solutions they have provided, with each candidate being assessed based on whether their solution would work, the quality of the code, and any errors in the code. In addition, extra features test for plagiarism from previous tests.

How do candidates take a test?

DevSkiller’s Java online tests are accessible from anywhere, meaning all the recruiter has to do is provide the test, then it is up to the candidate to come up with the right results. Each test can be made accessible for a limited time. Candidates can complete tests using their favorite IDE and then clone the project to GIT. Candidates can also run unit tests to make sure their solutions are effective. Once completed, test results are automatically evaluated and presented to the recruiter in the form of a report.

How long does it take to set up DevSkiller?

DevSkiller provides an extensive library of Java coding tests, meaning you can start testing candidates immediately after setting up your account. The whole process of setting up your Java coding questions can take as little as five minutes.

What do candidates think of DevSkiller tests?

Feedback received from candidates is that they love the structure of DevSkiller Java coding tests. We find candidates like having a chance to prove their software development skills, rather than simply trying to churn out old algorithms that they haven’t touched since they were students. They also like that DevSkiller tests use normal coding practices and conventional tools like unit testing and cloning to GIT from a personal IDE.

If developer candidates are apprehensive about taking the test, their suspicions usually come from experience taking algorithmic tests- tests that don’t monitor the actual skills a developer uses on an everyday basis. With DevSkiller online tests, we find that candidates can immediately tell the difference and can test their Java coding skills in a way that is challenging but also a fair representation of the type of work they will be doing.

What’s the test duration?

Java coding tests are flexible and you can set the duration to suit your own preferences. You have the option to use the default settings, or to cater the test to your own needs. Furthermore, each individual question within a test, can also be set with time-limits.