
java programming
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Thiruveedula Srinivasulu
Used 5+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java code?
class increment {
public static void main(String args[]){
int g = 3;
System.out.print(++g * 8); }
}
32
33
24
25
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the extension of compiled java classes?
.txt
.class
.js
.java
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these keywords is used to define interfaces in Java?
intf
interface
Interface
Intf
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one of the following is not an access modifier?
protected
public
void
private
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following Java program?
final class A {
int i;
}
class B extends A {
int j;
System.out.println(j + " " + i);
}
class inheritance
{
public static void main(String args[])
{
B obj = new B();
obj.display();
}
}
2 2
3 3
Runtime Error
Compilation Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When does method overloading is determined?
At coding time
At execution time
At run time
At compile time
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of Constructors?
int
float
void
none of the mentioned
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
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
20 questions
Fintech
Quiz
•
University
15 questions
Firewall and Network Security
Quiz
•
University
10 questions
Information systems concepts
Quiz
•
University
18 questions
PBO Inheritance Episode 2
Quiz
•
University
13 questions
L1 - Computer Networks
Quiz
•
University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
