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 a superclass?
How large is a boolean?
What is compile time polymorphism?
20 Answers CTS, Elementus Technologies, Oracle,
hi to all. well can you please tell me that why String class is immutable? Thanks in advance.
posted in online test
What is map java?
I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing?
What is meant by Session? Explain something about HTTP Session Class?
what is the main difference between string and stringbuffer? can you explain it with program?
What is the life cycle of an Applet ?
How to make a class or a bean serializable?
What is difference between Eclips and MyEclips?