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

Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

1027


If a class is declared without any access modifiers, where can the class be accessed?

1066


What exactly is a .class file?

1047


What are the drawbacks of singleton class?

1009


How to sort elements in a parallel array in java?

894


how to create multithreaded program? Explain different ways of using thread? : Java thread

991


What is the concept of multithreading?

991


What is a ternary operator in java?

982


What are the actions that can occur when a thread enters blocked state?

1058


What is the use of join method?

1033


What is main difference between variable and constant?

1036


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

1320


What are 3 data types?

996


What is boolean query?

985


How do you clear an arraylist in java?

986