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 race condition ?? (Threading concept) TCS 2 sept10

3 Answers   SparkTG, TCS,


what is tempplate pattern

4 Answers   IBM, RBS,


What are unchecked exceptions in java?

0 Answers  


How to check if linked list contains loop in java?

0 Answers  


Can set contain duplicates?

0 Answers  






take any 4 input numbers. like 2345.. wanted out put is All 16 combinations of the number 2345.. for example- taking input as 4565 output- 5654 4556 4655..

2 Answers   Emphasis,


Is vector synchronized in java?

0 Answers  


Is nullpointerexception checked or unchecked?

0 Answers  


Why set do not allow duplicates in java?

0 Answers  


Can we create our own daemon thread?

0 Answers  


What is string immutability?

0 Answers  


Can we override private methods?

0 Answers  


Categories