QUESTION 1 The default value for a data member of boolean type is true. true fal
ID: 3905366 • Letter: Q
Question
QUESTION 1
The default value for a data member of boolean type is true.
true
false
2
A static data field can be accessed from any method in the same class.
true
false
3,
A static method in a class can access the class variables in the same class.
true
false
4
Each class in the file is compiled into a separate bytecode file.
true
false
true
false
2
A static data field can be accessed from any method in the same class.
true
false
3,
A static method in a class can access the class variables in the same class.
true
false
4
Each class in the file is compiled into a separate bytecode file.
true
false
Explanation / Answer
1) false.
2)true. Static variables can be accessed by both static and non static functions.
3)true. Static methods can only access static/class variables in same class.
4) true. In java each class wil be comiled and seperate .class file will be generated which cotains byte code.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.