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 / sudhakar
private variables are not accessible by the subclasses, either the class B should be the inner class of class A or we have to go through the java reflection api.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Why class is used in java?
What are the component of java?
What is java actionlistener?
What is DDP?
what is direct link to download swing ebook,applet,ejb,core java
What does the web module contain?
What is java 2 platform, micro edition (j2me)?
What do you understand by j2ee?
What are the advantages in the use of spring for application development?
What is difference between javac and java?
What is a web container in j2ee?
What is event in java?
What is a jbutton in java?
Hi Friends. I want complete technical flow of j2ee project with following technologies. jsp , servlet , Struts , Hibernate , (should follow mvc-2 design pattern) . with DAO ,DTO SERVICE layers .
Is java part of oracle?