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


Please Help Members By Posting Answers For Below Questions

What does function identity () do?

513


What is the integer of 16?

531


what is meant by encapsulation?

620


What is a container in a gui?

536


What are the kinds of polymorphism?

606






what is static import in java? Explain

547


What is the advantage of preparedstatement over statement?

552


Is array a class in java?

499


What type of value does sizeof return?

528


Can this keyword be used to refer static members?

540


What is the parse method in java?

555


what is ststic with example

1588


State some advantages of java?

708


What is json parser in java?

607


What is functional interface in java example?

525