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 the use of inner class?
What is the purpose of lambda expressions?
what's diff between struts 1.1 & 1.2
Does hashset allow duplicates in java?
Explain different states of a thread in java?
What is the difference between notify and notifyall method?
What is sizeof () operator?
What primitive Java types? Howmany are they and what are their names?
What is meant by Encapsulation? Can you write a class to explain encapsulation?
How we can run a jar file through command prompt in java?
What are the default and parameterized constructors?
Does apple use java?