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

Answers were Sorted based on User's Feedback



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

Answer / prathyusha

static class is created before object of the class is created.

Is This Answer Correct ?    16 Yes 0 No

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

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

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

Answer / chantiraji

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

Post New Answer

More Core Java Interview Questions

What is the use of static methods?

0 Answers  


When try and catch block is used ?

6 Answers  


What is hashing principle in java?

0 Answers  


Explain the difference between private, public, package and protected in java?

0 Answers  


What are the advantages of defining packages in java?

0 Answers  






What is default constructors?

0 Answers  


How will you communicate between two applets?

0 Answers  


What is meant by anonymous class?

0 Answers  


wht is mean by dirty read?

1 Answers  


What is the difference between add() and addElement() method in Vector Class ?

2 Answers   TCS,


How is it possible for two string objects with identical values not to be equal under the == operator?

0 Answers  


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

7 Answers   Huawei, IBM,


Categories