There are 2 classes . Class A and Class B. In Class A i declared
a variable in private. if we can access this private variable in
Class B. If yes means , how we can access ?

Answer Posted / anup

we can easily use of private variable of class A by class B
by inherits by extends keywords as a publicly.then every
variable which are present in base class as behave in derive
class.

Is This Answer Correct ?    1 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is caller?

726


What is the use of method save()?

679


What software is needed for java programming?

605


What is a java ee container?

630


Why java is called robust and secure?

660






What is java servlet container?

663


Is eclipse written in java?

694


What are the java backend technologies?

639


What is home interface?

694


How to invoke stored procedure in hibernate?

634


What is component contract?

681


What is basic authentication?

702


How long does it take to master java?

642


Why java is interpreted language?

608


What is Document Object Model?

741