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 / sandeep

an outer class cannot be static.it can only be declared as
pubic,abstract or final OR a combination..

an inner static class behaves just like a normal static member..

n yes v can creat an object of inner static class as....

Outer.Inner obj=new Outer.Inner();

Is This Answer Correct ?    38 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is merge sort in java?

1024


What is the type of lambda expression?

1082


What is the difference between array and array list in java?

1296


Explain different types of wrapper classes in java?

1071


What are locale settings?

1031


What is a dynamic array java?

987


Difference between static and dynamic class loading.

1181


Is the milky way in a void?

1004


What is finalize()? Is finalize() similar to a destructor?

1003


Is java 9 released?

1062


What is map java?

1028


Is break statement can be used as labels in java?

1011


List some important features of java 10 release?

1155


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

1183


Can an interface have a constructor?

1022