can we create object for static class in java
Answer Posted / usha
Hi all, If u want to create a static class then no need to
create instance for the class.If u create a instance then
there is no purpose to create that class as static.As in
case of static members & static methods , we are not
creating instance, just we are calling those by using class
name only.
| Is This Answer Correct ? | 54 Yes | 6 No |
Post New Answer View All Answers
What is the difference between choice and list?
Distinguish between a predicate and a function?
Is string an object?
How to avoid memory leak in java?
What is contractor means and methods?
What is files manifesting?
What is charat java?
What is the do while loop syntax?
What are different access specifiers in java?
Give a brief description of java socket programming?
What is slash r?
According to java operator precedence, which operator is considered to be with highest precedence?
What is java used for?
What is string literal in java?
Write a function to find out longest palindrome in a given string?