Search Adaface 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

🧐 Question

Easy

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

Options:

  • Catch22
  • 42
  • 0
  • RunTime error

Medium

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

Options:

  • 1
  • 2
  • 3
  • 12
  • 13
  • Error

Medium

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

Options:

  • A C
  • A D
  • A E
  • B C
  • B D
  • B E
  • C D
  • C E
  • A B
  • D E

Medium

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

Options:

  • After Line 4
  • After Line 5
  • After Line 8
  • After Line 9
  • After Line 11
  • After Line 12
  • When main() completes

Medium

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
                                    

Options:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
🧐 Question🔧 Skill

Easy

Custom Exception
Exceptions
2 mins
Java
Solve

Medium

Holding References
2 mins
Java
Solve

Medium

Abstract Interface
OOPs
Interfaces
2 mins
Java
Solve

Medium

Garbage Collection
Garbage Collection
2 mins
Java
Solve

Medium

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

Adaface questions are trusted by 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 default library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
Join 1200+ companies in 75+ countries.
今日、最も候補者のフレンドリーなスキル評価ツールをお試しください。
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
私たちとしゃべる
市場で最も候補者の友好的な評価ツール