Answer Posted / prasanthi
yes,but it is declare to inner class,not to outter class.if we are declaring "private" to outter class nothing can be accessaed from that outter class to inner class.
| Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
What is the association?
Explain the purpose of garbage collection in Java?
Can array grow dynamically in java?
What is the size of a string in java?
What is a void method java?
What is the purpose of tostring() method in java?
Is ++ operator thread-safe in java?
What is object in java?
Explain the difference between protected and default access.
What is the preferred size of a component in java programming?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
Write a function for palindrome and factorial and explain?
What is anonymous inner class?
Explain working of call by reference function invoking.
Why is static used?