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


Please Help Members By Posting Answers For Below Questions

What is keyword and identifier?

897


What is package private scope in java?

728


What are loops in java?

816


What are the access modifiers available in java?

836


What is nan inf?

709


Is 0 a prime number?

757


What is a private class in java?

741


What is the vector class in java programming?

790


What's the default access specifier for variables and methods of a class?

808


Is 0 an even number?

762


What is string in java?

778


What's the purpose of using break in each case of switch statement?

776


Explain heap sort?

924


How would you convert bytes to string?

774


What is public static?

767