Home / Programming MCQs / JAVA MCQs / Question
C
Q. Identify what can directly access and change the value of the variable res.
Package com.mypackage; Public class Solution{ Private int res = 100; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which of these is not a valid Boolean method in Java?
What is the error in this code? byte b = 50; b = b * 50;
If you import a package, subpackages will not be imported.
If a subclass has the same method as declared in the parent class it is known as ______.
What is the output of the following code?
Which of these is necessary to specify at time of array initialization?
When a=9, b=12, c=3 then output of following statement is: x = a-b/3+c*2-1
Discusssion
Login to discuss.