
JAVA Concepts
Authored by JAYABHARATHI P
Others
KG
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these keywords is not a part of exception handling?
try
finally
thrown
catch
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class exception_handling
{
public static void main(String args[])
{
try
{
System.out.print("Hello" + " " + 1 / 0);
}
catch(ArithmeticException e)
{
System.out.print("World");
}
}
}
Hello
World
HelloWorld
Hello World
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Java program?
class exception_handling
{
public static void main(String args[])
{
try
{
int a, b;
b = 0;
a = 5 / b;
System.out.print("A");
}
catch(ArithmeticException e)
{
System.out.print("B");
}
finally
{
System.out.print("C");
}
}
}
A
B
AC
BC
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which principle allows different classes to be treated as instances of the same class through inheritance?
Encapsulation
Abstraction
Inheritance
Polymorphism
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, what concept allows us to implement runtime polymorphism?
Method overloading
Method overriding
Constructors
Static methods
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these allows compile-time polymorphism?
Method overloading
Method overriding
Both
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which scenario does Java NOT allow polymorphism?
When overriding private methods
When using the method overloading
When using interface methods
When using abstract methods
Access all questions and much more by creating a free account
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
10 questions
Ulangan IPS kelas 9 bab 1: benua
Quiz
•
9th - 12th Grade
10 questions
Quis Bab 2
Quiz
•
3rd Grade
15 questions
YU153 quiz
Quiz
•
9th - 12th Grade
10 questions
Kuis: Operasional Proses Event management
Quiz
•
University
10 questions
Descriptive Text (Possesive Forms) for 10th Grades
Quiz
•
10th Grade
15 questions
PTS Kelas XI.1
Quiz
•
11th Grade
15 questions
Clasifica los números
Quiz
•
6th Grade
14 questions
549 તાર્કિક પ્રશ્નો 02/01/24
Quiz
•
6th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Others
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Sound Energy Assessment
Quiz
•
KG - 2nd Grade
10 questions
Dr. Seuss
Quiz
•
KG - 5th Grade
20 questions
greater than less than equal to
Quiz
•
KG - 1st Grade
6 questions
Copy of G5_U6_L3_22-23
Lesson
•
KG - Professional Dev...
20 questions
Capitalization in sentences
Quiz
•
KG - 4th Grade
15 questions
Simple Patterns AB, ABB, ABC
Quiz
•
KG - 1st Grade