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
Can enum be null?
Why do pointers exist?
What is polymorphism in oops with example?
Is enum a class?
What is abstraction and encapsulation?
What does and I oop and sksksk mean?
How does polymorphism work?
Can static class have constructor?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
How long to learn object oriented programming?
Who invented oop?
What is object and example?
What are the advantages of polymorphism?
Why do we use class in oops?
Can we have inheritance without polymorphism?