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 |
How static variable work in java?
What are the different types of data structures in java?
Is math an abstract class in java?
How to perform selection sort in java?
How to create a base64 decoder in java8?
Is math class static in java?
What is stringbuffer in java?
Why does abstract class have constructor?
Can java run on google chrome?
Is null function in java?
Can java object be locked down for exclusive use by a given thread?
what is the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }