can we create object for static class in java
Answer Posted / kapil dalke
yes you can create an object of a static class.........
but there is no meaning ..........
because we used an static class when we dont want to create
an object.........
you can used these data members and methods without create
an object...........
otherwise u directly create an object without used the
static class ok
........
Thank You
| Is This Answer Correct ? | 51 Yes | 11 No |
Post New Answer View All Answers
Why is static used?
Can you make a constructor final in Java?
What is core java used for?
Give us a program to check for parenthesis matching using stack.
What is the benefit of inner / nested classes ?
Is java 9 released?
Implement two stacks using a single array.
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is an example of a constant variable?
How does remove work in java?
What do you mean by mnemonics?
Define an enumeration?
What does super keyword do?
what is thread in Java ?
What is the formula to calculate percentage?