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

What does sksksk mean in text slang?

1850


Why is static class not inherited?

839


Where You Can Use Interface in your Project

1631


Can static class have constructor?

792


what is graphics

2218


What is stream in oop?

1053


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3130


Is oop better than procedural?

783


What is the point of polymorphism?

785


What are the 4 main oop principles?

951


What is class and object with example?

831


What are classes oop?

803


What is this pointer in oop?

807


What is object-oriented programming? Webopedia definition

966


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1906