Java: QUESTION 1: Static variables are stored only once for all instances of the
ID: 3589109 • Letter: J
Question
Java:
QUESTION 1: Static variables are stored only once for all instances of the class. A class constant is equivalent to it.
True
False
QUESTION 2: A static data method can access static variable as well as be invoked without an object.
True
False
QUESTION 3: An abstract class can have abstract and non-abstract methods.
True
False
QUESTION 4: An interface can have abstract and non-abstract methods.
True
False
QUESTION 5: An abstract class supports multiple inheritance .
True
False
QUESTION 6: An interface supports multiple inheritance
True
False
Explanation / Answer
1.
Statement :
Static variables are stored only once for all instances of the class. A class constant is equivalent to it.
True.
2.
statement :
A static data method can access static variable as well as be invoked without an object.
True
3.
An abstract class can have abstract and non-abstract methods.
True
4.
An interface can have abstract and non-abstract methods.
False
5.
Statement :
An abstract class supports multiple inheritance.
False
6.
Statement : An interface supports multiple inheritance.
True.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.