why static class in java or what is use of static class in java

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is canonical name in java?

613


What are the procedures?

604


Explain what are final variable in java?

570


Can you override static methods?

502


What is the difference between throw and throws in java?

548






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

602


What is a list in java?

501


Explain static nested classes ?

589


How strings are created in java?

561


Can a main method be declared final?

579


What is the difference between hashmap and hashtable? What is an interface?

499


How to avoid memory leak in java?

595


What about interthread communication and how it takes place in java?

541


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

587


Why is String immutable?

615