What will be the output of the following Java program?
java quiz based on interface

Quiz
•
Computers
•
University
•
Hard
shruti keshari
Used 117+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
0
2
4
None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these can be used to fully abstract a class from its implementation?
Objects
Packages
Interfaces
None of the Mentioned
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this program?
a=10
a=20
Compilation Error
No Error, but no output
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of variable can be defined in an interface?
public static
private final
public final
static final
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does an interface contain?
Method definition
Method declaration
Method declaration and definition
Method name
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct way of implementing an interface salary by class manager?
class manager extends salary {}
class manager implements salary {}
class manager imports salary {}
None of the mentioned.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java program?
0 1 2
0 2 4
0 0 4
0 1 4
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Java Control Flow statements

Quiz
•
University
10 questions
Java Quiz 1

Quiz
•
University
10 questions
P1_APLab2Quiz_B3B4

Quiz
•
University
10 questions
Java - Introduction

Quiz
•
University
7 questions
Quiz on Java Operators

Quiz
•
University
15 questions
CODE ZENITH

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
10 questions
Java variables

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade