How to access a variable if it is declared as private?
Answer Posted / ravikiran(aptech mumbai)
the variable declared as private can be accessed with in the
same class only
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Define the term string pool?
What are runtime exceptions?
Explain about doubly linked list
What is a literal coding?
Program to Find the second largest element in an array.
What is the purpose of the System class?
What are namespaces in java?
Is upper case in java?
What are the different access modifiers available in java?
What java is used for?
Tell me a few examples of final classes defined in Java API?
What does next mean in java?
What is the declaration statement?
Can you use this() and super() both in a constructor?
How do you sort in descending order in java using collections sort?