Login Or SignUp
Terms Of Service
Online Knowledge Sharing Platform
Which of the following collection maintain its elements in Natural Sorted order ?
Which statement is true about a static nested class?
You must have a reference to an instance of the enclosing class in order to instantiate it.
it does not have access to non static members of the enclosing class.
its variables and method must be static
it must extend the enclosing class
Ans: it does not have access to non static members of the enclosing class.
Which of these is method for testing whether the specified element is a file or a directory?
Which of the following allows us to call generic methods as a normal method?
All of the mentioned
Ans: Type Interface
If we add Enum constants to a sorted collection ( Treemap , TreeSet ), What will be the order in which they will be maintained ?
Sorted Collection wont maintain them in any order.
Order in which constants are declared.
Natural Sorting Order.
Ans: Order in which constants are declared.