
oops and inheritance
Authored by Polavarapu Chaitanya
Others
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of Boolean variable?
TRUE
FALSE
NULL
NOT DEFINED
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Default value of static integer variable of a class in java is
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Java is short of Javascript.
TRUE
FALSE
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which feature JAVA does not support?
Polymorphism
Inheritance
Pointer
Portable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can used to find the length of string?
stringlength()
length()
getLength()
getSize()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to create anonymous Objects
new Class_name().method_name();
Obj=new Class_name().method_name();
Class_name obj=new Class_name().method_name();
new Class_name().objname
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to create nested class object for the following code______
Ex:
class A
{
Class B//nested class
{
}
}
A r=new A();
A.B c=new A.B();
A r=new A();
A.B c=r.new A.B();
A r=new A();
B c=new A.B();
A r=new A();
B c=new B();
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?