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
What does sksksk mean in text slang?
Why is static class not inherited?
Where You Can Use Interface in your Project
Can static class have constructor?
what is graphics
What is stream in oop?
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?
Is oop better than procedural?
What is the point of polymorphism?
What are the 4 main oop principles?
What is class and object with example?
What are classes oop?
What is this pointer in oop?
What is object-oriented programming? Webopedia definition
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?