
Best Practices in Java
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Alpana Sonje
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to resolve following error? @Override
public void run() { Thread.sleep(300); }
Surround with try/catch
Add throws declaration
Either A or B
None of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the suitable name for the method used to check whether given number is prime or not?
prime()
checkprime()
isPrime()
getPrime()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When we have constructor based and setter based injection defined within an entity then which will be called by default?
constructor
setter method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the default scope for beans in the spring?
Prototype
Singleton
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output of following code?
public class ChildThread extends Thread {
@Override public void run() {
System.out.println("Hello"); }}
public class ThreadDemo {
public static void main(String[] args) {
ChildThread t1 = new ChildThread();
t1.start();
t1.start(); }}
Hello
Hello
Hello
CTE
RTE
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can one interface implements another interface?
Yes
No
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is used to bind the metadata in hibernate?
SessionFactory
ServiceRegistry
Configuration
SessonRegistry
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Introduction to Django Framework Quiz
Quiz
•
University
11 questions
SAINS KOMPUTER 1.3
Quiz
•
University
10 questions
Day 10 - Networking & Security I - 1st Review of Day 9
Quiz
•
University
15 questions
DECODE AI: FIRST ROUND
Quiz
•
University
10 questions
Gestión de Procesos
Quiz
•
University
10 questions
Programming in C
Quiz
•
University
10 questions
Cybersecurity Fundamentals Week 2 Quiz
Quiz
•
KG - University
15 questions
AITT LAB QUIZ 1
Quiz
•
University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
10 questions
Identifying equations
Quiz
•
KG - University
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
HS2C2 AB QUIZIZZ
Quiz
•
1st Grade - Professio...
14 questions
Homonyms Quiz
Quiz
•
KG - University
16 questions
Parts of a Parabola
Quiz
•
8th Grade - University
10 questions
A Brief History of Geologic Time
Interactive video
•
11th Grade - University
15 questions
Black Friday/Cyber Monday
Quiz
•
9th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
