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
What is difference between pointer and reference?
What is meant by design patterns?
What is a method in coding?
Should database connections be singleton?
What is the difference between the paint() and repaint() methods in java programming?
What does string [] args mean?
In which language java is written?
Which programming language is best in future?
Can we override the private methods?
Why java does not support pointers?
How to perform merge sort in java?
Why does java does not support multiple inheritance? Explain
What is the mapping mechanism used by java to identify IDL language?
Explain the difference between jvm and jre?
How are this() and super() used with constructors in java programming?