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 make a class static without using static keyword?

Answer Posted / mamta subramanian

We cannot declare any outer class as static. There would a
compiler error if we do so.
But if it is an inner class we can declare it as static.
and it act as a static object of outer class.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can enum be null?

965


Why do pointers exist?

1050


What is polymorphism in oops with example?

981


Is enum a class?

1010


What is abstraction and encapsulation?

948


What does and I oop and sksksk mean?

1112


How does polymorphism work?

1080


Can static class have constructor?

989


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2558


How long to learn object oriented programming?

1033


Who invented oop?

1070


What is object and example?

1124


What are the advantages of polymorphism?

986


Why do we use class in oops?

922


Can we have inheritance without polymorphism?

977