Can you call a private data from an inner class?

Answer Posted / sudhakar

when ever we declare a variable as private in Outer
class,that variable we can access from Inner class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

824


Can we override data members in java?

886


What is the old name of java?

712


Is ++ operator thread-safe in java?

888


How many types of java are there?

757


what is use of functional interface in java 8?

785


What are invisible components?.

1897


Explain working of call by reference function invoking.

789


What is data type in computer?

713


What is a treeset class?

762


Can one thread block the other thread?

791


Can an interface extend another interface?

817


What is string variable?

801


What is logical variable?

727


What's a method in programming?

759