
Java Constructors Methods
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
A Vijay Kumar
Used 484+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many constructors does this Java class have?
0
1
2
3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the job of a Java class's fields?
Used for communication with an object of this class type
Used for calculations when an object is constructed
Allows for import statements in this class
Store the state of an object of this class type
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What of the following is the default value of an instance variable?
null
0
Depends upon the type of variable
Not assigned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can we have multiple classes in same java file?
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of Constructors?
int
float
void
none of the mentioned
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of this statement is incorrect?
All object of a class are allotted memory for the all the variables defined in the class
If a function is defined public it can be accessed by object of other class by inheritance.
main() method must be made public
All object of a class are allotted memory for the methods defined in the class
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This is an example of a non-return method.
True
False
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
11 questions
HTML Postest
Quiz
•
University
15 questions
Object Oriented Programming Assessment 1
Quiz
•
University
10 questions
FOP - CHAPTER 6
Quiz
•
University
12 questions
Quiz No. 2.2 Hash Tables
Quiz
•
University
15 questions
Quiz 1
Quiz
•
University
10 questions
Basic Networking
Quiz
•
University
15 questions
DIGITAL MARKETING
Quiz
•
University
12 questions
Java History Characteristics Environment
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
