Search test library by skills or roles
⌘ K

Adaface Sample Java Questions

Here are some sample Java questions from our premium questions library (10273 non-googleable questions).

Skills

Others

Embedded Systems Agile/Scrum Cyber Security SAP ABAP SAP HANA SAP Fiori SAP GRC SAP QM SAP SuccessFactors Salesforce Developer Salesforce Administrator Boomi Dynamics 365 SCM Dynamics 365 Finance Dynamics 365 Customer Service Dynamics 365 Sales Dynamics 365 Customer Voice Dynamics 365 Commerce Dynamics AX Spark Adobe InDesign Oracle Hyperion Planning Customer Support ITIL Blue Prism SAS SCCM SSAS SSIS SSRS Citrix Google AdWords Weblogic Talend UML Human Resource Management Talent Acquisition Power Apps RPA CISCO CISCO DCIM French Apache NiFi Apache Pig TIBCO Spotfire TIBCO Business Studio TIBCO Administration TIBCO ActiveMatrix BPM TIBCO Hawk TIBCO Apache Tomcat Oracle Hyperion Financial Management Oracle Fusion Oracle AIA Oracle APEX Oracle BPM Oracle Apps Oracle Financial Apps Oracle OAF Oracle SOA SAP Hybris SAP BusinessObjects SAP BI SAP PowerDesigner SAP PowerBuilder SAP Leonardo SAP MDM SAP MDG SAP BW SAP SRM SAP UI5 SAP MM SAP HCM SAP BTP (SCP) SAP PI SAP PP SAP Basis SAP SD SAP WM SAP PS SAP BODS SAP DBM SAP Litmos SAP FI Loadrunner WPF WebFOCUS Ranorex Informatica Data Quality GDPR RabbitMQ Gradle Grunt EJB SnapLogic SharePoint Progress (OpenEdge) Informatica B2B Data Exchange Informatica MDM Joomla Ionic Liferay Sqoop Computer Literacy Communication Skills Technical Support Ecommerce Analytics Software Support Growth Marketing Marketing Analysis Digital Marketing Product Marketing SEO Outreach Market Research Jira German Italian Spanish Grammar & Vocabulary Listening Comprehension Reading Comprehension Sentence Structure
🧐 Question

Easy

Custom Exception
Exception Handling
Custom Exceptions
Solve
What does the following code output?
 image

Hard

Holding References
Solve
What does the following Java code output?
 image

Medium

Abstract Interface
OOPs
Interfaces
Solve
Given following interface:
 image
Which of these are correct classes?
 image

Medium

Garbage Collection
Garbage Collection
Solve
After which line is "bs" object, created on Line 4, eligible for garbage collection?
 image

Hard

Static Init Blocks
OOPs
Solve
What does the following code output?
 image
1) G A B E D H
            2) G B A D E H
            3) G B A D E H C F
            4) C F G A B E D H
            5) C F G B A D E H
            6) G C F A B E D H
            7) G C F B A D E H
🧐 Question🔧 Skill

Easy

Custom Exception
Exception Handling
Custom Exceptions

2 mins

Java
Solve

Hard

Holding References

2 mins

Java
Solve

Medium

Abstract Interface
OOPs
Interfaces

2 mins

Java
Solve

Medium

Garbage Collection
Garbage Collection

2 mins

Java
Solve

Hard

Static Init Blocks
OOPs

2 mins

Java
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Custom Exception
Exception Handling
Custom Exceptions
Java
Easy2 mins
Solve
Holding References
Java
Hard2 mins
Solve
Abstract Interface
OOPs
Interfaces
Java
Medium2 mins
Solve
Garbage Collection
Garbage Collection
Java
Medium2 mins
Solve
Static Init Blocks
OOPs
Java
Hard2 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1200+ companies in 75+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️