Java and Spring Framework Online Test

TestDome skill assessments are used by more than 5,000 companies and 450,000 individual test takers.

Jobseekers: Get a Certificate

Take a Practice Test

Companies: Try First, Pay Later

Sign Up To Use This Test

The Java and Spring Framework online test assesses candidates' knowledge of the Java and the Spring Framework.

It's ideal for pre-employment screening. A good Java and Spring framework developer should be familiar with the most commonly used aspects of the Framework and be able to leverage those to create enterprise grade applications.

This online test requires candidates to answer multiple-choice questions about the Spring Framework and solve live coding problems using Java.

Recommended Job Roles
Back-End Developer
Java Developer
Spring Framework Developer
Web Developer
Sample Candidate Report

Sample Free Questions

Task Executor

5min
  -  
Easy  
  -  
MCA

Java Spring Configuration Public

Consider the following Spring bean:

@Component
public class TaskExecutor {

    @Value("${thread.count:10}")
    private int threadCount;
    @Value("worker.thread.name")
    private String threadNameTemplate;
    private AtomicInteger counter = new AtomicInteger();
    private ExecutorService executorService;

    @PostConstruct
    public void init() {
        ThreadFactory threadFactory = (runnable) -> new Thread(threadNameTemplate + counter.incrementAndGet());
        executorService = Executors.newFixedThreadPool(threadCount, threadFactory);
    }
}

Select the statements that are correct.

(Select all acceptable answers.)

Alert Service

10min
  -  
Easy  
  -  
CODE

Java Interfaces Inversion of control Refactoring Public

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 constructor that accepts AlertDAO.
  • The raiseAlert and getAlertTime methods should use the object passed through the constructor.

Merge Names

10min
  -  
Easy  
  -  
CODE

Java Arrays Public

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.

Use Free Questions On a Trial Plan

Premium Questions

The premium question library contains our unique, hand-crafted questions. We offer a refund if you find any of them answered online.

Questions
Document Store, Needle, Driver Exam, Read First Line, Shipping, Max Sum, Paper Strip, Unloading Trucks, Password Advice, Appointments, Read Write Execute, Shining Star, Stories, Runner, Segment, Chain Link, Chicken, Crop Ratio, Date Transform, Document Counter, Veterinarian, Hobbies, Internal Nodes, Log Parser, Node, Paragraph, Platformer, Product, Racer, Remove Repetitions, Snapshot, Snow Storm, Stack to List, Test Results, Ship, Unique Product, Unique Numbers, Username, Utilities, Weighted Average, Moving Total, Language Teacher, Services Config, Question Properties, Service AOP, Book Search, Mock Log Repository, Book Sale, Friend, Shelf Test
Skills
Java Bug fixing Language Stream Strings Exceptions Arithmetic Algorithmic thinking Arrays Sorting Java Spring MVC pattern REST TDD Dynamic programming Memory management Linked list Higher order function Interfaces OOP Integer division Regex Refactoring Queue HashMap Iteration Lists Tree Serialization XML Recursion Data structures Accessibility levels Multithreading Synchronization StringBuilder ArrayList Complexity Stack Stream API Class modifiers HashSet Inheritance Configuration Database abstraction Graphs Test case design Unit testing
Score Distribution
Loading...
Pricing For Premium Questions