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's the default access specifier for variables and methods of a class?

1064


What 5 doubled?

937


How to perform selection sort in java?

963


What is the purpose of the runtime class in java programming?

1015


Why string is a class?

902


What is the purpose of void class?

1011


What is Java Package and which package is imported by default?

1042


How to invoke external process in java.

1026


What kind of variables a class can consist of?

1048


Does java list allow null?

929


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1254


What is the structure of java?

972


What is a singleton class in Java?

988


Can you sort a string in java?

861


What are inbuilt functions?

943