What is the purpose of nested class in java?
Answer / Naina Gupta
Nested classes are used to group related classes together. They can be either static or non-static (inner). Static nested classes are also known as 'static member classes'. Inner classes, on the other hand, are associated with an instance of the outer class and have access to its private members.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we catch more than one exception in single catch block?
What modifiers are used for interface declaration?
What is replaceall in java?
Why should we use singleton pattern instead of static class?
What is JVM and is it platform independent?
What is the differnence between String Buffer and String builder despite having knowledge that String builder is faster than String Buffer and last one is threadsafe.please tell another important difference.
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
What are File and RandomAccessFile classes?
Explain garbage collection in java?
Program to find greatest prime number in n numbers?
What is main string [] args?
what is inner class?