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 a line break example?

1 Answers  


Where import statement is used in a java program?

1 Answers  


Can private method static?

1 Answers  


What is time complexity algorithm?

1 Answers  


What are the advantages of java?

1 Answers  


which swing component is similar to rich text box in .net/vb

1 Answers  


Is java code slower than native code?

1 Answers  


How can we create an immutable class in java?

1 Answers  


There can be a abstract class without abstract methods, but what is the need to declare a class abstract if it doesn't contain abstract methods?

5 Answers   HCL,


What data type is string java?

1 Answers  


Why is it called boolean?

1 Answers  


Give a brief description of java socket programming?

1 Answers  


Categories