Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Composition?

1059


What is a numeric digit?

1087


Can a main method be declared final?

1059


What are the differences between stringbuffer and stringbuilder?

1065


What are thread safe functions?

953


What happens if we don’t override run method ?

1006


Name and explain the types of ways which are used to pass arguments in any function in java.

1080


What is the use of accept () method in java?

1098


I don’t want my class to be inherited by any other class. What should I do?

1016


Is a boolean variable?

1016


Is arraylist an object in java?

1169


How to do encapsulation in java?

1054


What is the difference between JDBC 1.0 and JDBC 2.0?

3190


Explain covariant method overriding in java.

1109


Why lambda expression is used in java?

1069