why static class in java
Answer / Mr Praveen Kumar Jain
A static class in Java serves the following purposes:
1. Static classes can contain only static members (methods and variables). This means they do not need an instance of the class to be created before using them.
2. They are often used for utility or helper classes that provide functionality without requiring object creation.
3. Static classes are useful when you want to ensure that only one instance of a particular class can exist within a Java Virtual Machine (JVM).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the main functionality of RRL(Remote Reference Layer)?
Where does the session Object stores? If 100 users are connecting to the server. How does it recognize which session belongs to which user?
5 Answers HCL, Mobillo Venture,
Explain phantom read?
What is difference RMI registry and OSAgent?
Differences between applications and applets?
difference between applicationserver and webserver
What are the sequence of steps to write pub or sub model kind of application?
What is synchronization and why is it important?
How are the elements of a borderlayout organized?
what is the RMI / IIOP?
What is meant by method chaining?
How u validate date in DD/MM/YY format. and how u validate money in ur jsp
3 Answers Ashok Leyland, Satyam, Tech Mahindra, Tomax,