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 difference between notify and notifyall method?

0 Answers  


Which method must be implemented by all threads?

0 Answers  


What is a two-pass assembler?

0 Answers   Syntel, Visa,


Why are there no global variables in java?

0 Answers  


What is the immediate superclass of the Dialog class?

2 Answers  






What is a map in java?

0 Answers  


How do you decide when to use arraylist and linkedlist?

0 Answers  


What happens if I remove static from main method?

0 Answers  


Does treeset use compareto?

0 Answers  


How many types of threads are there in java?

0 Answers  


List methods available in Java Queue interface

1 Answers  


write SQL command for table employee where print first name or last name start like "A" and who is working in domain(angular js,java,dotnet)

1 Answers  


Categories