Answer Posted / sanket mehta
static keyword is meant for providing memory and executing logic without creating Objects, a class does not have a value logic directly, so the static keyword is not allowed for outer class
If you declare the outer class as static, it will not allow to compile giving : Illegal modifier for the class classname; only public, abstract & final are permitted
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the applet security manager, and what does it provide?
What is meant by object oriented programming – oop?
What is the basic of java?
Is string is a data type?
Why we use multi threading instead of multiprocessing?
What is the purpose of a default constructor?
What is use of arraylist in java?
What is the default size of load factor in hashing based collection?
Can we write method inside a method in java?
What invokes a thread's run() method in java programming?
Can we have try block without catch block?
What is the difference in between cpp and java? Can u explain in detail?
What are the different ways to handle exceptions?
How do I get 64 bit java?
How many bytes is double?