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 static methods?
When try and catch block is used ?
What is hashing principle in java?
Explain the difference between private, public, package and protected in java?
What are the advantages of defining packages in java?
What is default constructors?
How will you communicate between two applets?
What is meant by anonymous class?
wht is mean by dirty read?
What is the difference between add() and addElement() method in Vector Class ?
How is it possible for two string objects with identical values not to be equal under the == operator?
Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1