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
Can a constructor be protected?
How does the garbage collector works in java?
Why generics are used in java?
Does java runtime require a license?
What about member inner classes?
What is the difference between break and continue statements?
What is java Applet?
What is ternary operator in java?
Which of the following classes will have more memory allocated?
Write a program to find maximum and minimum number in array?
Which package is used for pattern matching with regular expressions?
what are the methods in object?
Can a java program have 2 main methods?
What is widening and narrowing in java? Discuss with an example.
How to create a base64 decoder in java8?