why static class in java or what is use of static class in java
Answers were Sorted based on User's Feedback
Answer / prathyusha
static class is created before object of the class is created.
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / jyotiranjan jena
JVM can call the static method without creating instance of this class.We can save memory if we create class as static
| Is This Answer Correct ? | 9 Yes | 2 No |
we are using with out creating object for static class because, JVM allocate the consistent memory for static class.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is int lol?
What is data type example?
How do you remove duplicates from an array in java?
What is indexof?
If two threads call a static method at the same point of time, what will happen?
What is n in java?
How do you create a bulleted list?
Explain the difference between an Interface and an Abstract class?
What makes a function well defined?
What is a vector in java?
What is a jagged array in java?
What is singleton class in ruby?