This Java and Hibernate Online Test
Separates Good From Bad Hires

Check our public questions below

Solve questions to get feedback or
take a practice test and get a free certificate.

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

The Java and Hibernate online test assesses candidates' knowledge of Java and the Hibernate library.

It's ideal for pre-employment screening. A good Java and Hibernate developer should be familiar with how to use Hibernate for object persistence and to leverage it to create enterprise grade applications.

This online test requires candidates to solve live coding problems using Java and Hibernate.

Sample public questions

Easy
3 min
mca
Public
Java
Inheritance
OOP

A company is designing the class hierarchy for various cache implementations:

public class Cache {}

public class DiskCache extends Cache {}

public class MemoryCache extends Cache {}

public class OptimizedDiskCache extends DiskCache {}

Select all the answers that will result in a runtime exception.

Easy
10 min
code
Public
Java Hibernate
HQL

The PetDAO class is used for various database operations on the Pet entity.

Finish the findNamedPetsBySpecies method so that it returns all pets of the appropriate species. The method should not return any Pets whose name field is null. The method accepts a Hibernate Session object that it should use to make the query.

For example, if the Pets table contains:

id  name   species
--------------------
0   Lady   Dog
1   Max    Cat
2   null   Camel

calling findNamedPetsBySpecies with "Cat" as the species, should return a list that contains a pet named "Max" with the id 1.

For jobseekers: get certified

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

Take a Certification Test

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

54 more premium Java and Hibernate questions

Document Store, Driver Exam, Shipping, Chain Link, Document Counter, Hobbies, Node, Paragraph, Product, Snapshot, Snow Storm, Test Results, Username, Utilities, Weighted Average, Language Teacher, 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, Customer DAO, Employee Entity, Menu Saver, Animal Statistics, Shelf Test, Read Write Execute, Read First Line, Max Sum, Veterinarian, Platformer, Unique Numbers, Book Sale, Friend, Stories, Moving Total, Car Rental, Paper Strip, Internal Nodes, Unique Product, Wheel Defects, Flight Connections, Date Transform.

Skills and topics tested

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

For job roles

  • Back-End Developer
  • Java Developer
  • Web Developer

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.

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

Want to know more?

Not exactly what you're looking for?

Related Java and Hibernate Programming Tests: