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

there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.

1793


What is parsing in grammar?

803


What is the maximum size of byte array in java?

786


What is isa relationship?

766


Is singleton set an interval?

738


Can a hashset contain duplicates java?

719


Why we go for collections in java?

780


What is ternary operator?

775


What is pojo class in java?

742


What happens if we override private method?

770


What are conditionals and its types?

855


What are data types in programming?

776


How you can force the garbage collection?

765


What is general methodology?

819


What do you mean by constant time complexity?

850