
Java Constructors Methods

Quiz
•
Computers
•
University
•
Hard

A Vijay Kumar
Used 483+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
004_Java Instance Variables

Quiz
•
12th Grade - University
11 questions
Array

Quiz
•
University
6 questions
1150 Java Basics

Quiz
•
University
12 questions
Cisco RSE C2

Quiz
•
University
14 questions
Java Operators

Quiz
•
University
10 questions
Talent Next Java MCQ-1

Quiz
•
University
10 questions
Динамические библиотеки

Quiz
•
University
10 questions
java quiz on Encapsulation and Abstraction

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University