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

Can a private method be declared as static?

965


What is the intersection and union methods?

978


When should I use singleton pattern?

978


What is the difference between a scrollbar and a scrollpane?

992


What is the primitive type short?

969


Which object oriented concept is achieved by using overloading and overriding?

1038


What is difference between static class and normal class?

1030


When we should use serialization?

963


What is void data type?

920


Is 0 true or is 1 true?

901


Which one will take more memory: an int or integer?

1160


Do you need to import math in java?

934


What is integer size in java?

944


When should the method invokelater() be used?

971


What is an argument in java?

893