
Java variables
Authored by ALDO STALIN J L
Computers
University
Used 95+ 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
1 min • 1 pt
0
Garbage value
Compilation error
Runtime error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
0
Garbage value
Compilation error
Runtime error
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The instance variables in b are given the same values as a
The instance variables in a are given the same values as b
a and b are considered to be the same object
None of the mentioned options
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A single class can have
only one instance
two instances
any number of instances
None of the mentioned options
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Static means
Class Level
Object level
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Main method is static because to execute main method without creating object By JVM
Yes
No
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the ouput of the following code?
x=10 x=10
x=10 x=20
x=30 x=30
x=30 x=20
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?