why i can not access private variable in other class?

Answer Posted / naresh

private variable are visible within it class only. the are
not visible to other class within that package or other. so
we cannot access.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which interceptor is responsible for setting action javabean properties?

616


How many types of jdk are there?

698


What is difference between loosely coupled and tightly coupled in java?

606


Is eclipse a jdk?

666


What is scrollable resultset in java?

660


What is a service layer in java?

606


I am trying to create a new universal user group. Why can't i? : java security

708


How do I open the java console in windows 10?

727


What is profile in java?

621


What is the difference between java se and java ee?

596


What is type_scroll_insensitive in java?

679


What is an interceptor in java?

631


Explain daemon thread.

742


What is java net url?

619


What is the difference between ec2 and lambda?

657