What is a static class in java?



What is a static class in java?..

Answer / Keshav Kumar Jha

A static class in Java is a class that cannot be instantiated, meaning you can't create an object of it. It contains only static members which belong to the class rather than any instance of the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Give reasons supporting that string is immutable.

1 Answers  


What is the difference between static and non-static variables?

6 Answers  


difference between byte stream class and character stream class?

1 Answers  


What happens when a class is made static like if a field or member is made static it becomes class variable and is shared by all the object of the class?

1 Answers  


Is .net better than java?

1 Answers  


What is deserialization?

1 Answers  


What are the uses of java?

1 Answers  


Can you write a java class that could be used both as an applet as well as an application?

1 Answers  


How can a gui component handle its own events?

1 Answers  


How do you include a string in java?

1 Answers  


What are the major advantages of internal iteration over external iteration?

1 Answers  


What is the difference in between cpp and java? Can u explain in detail?

1 Answers  


Categories