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
How do you remove an object from an arraylist in java?
What are the characteristics of Final,Finally and Finalize keywords.
What is a prefix function.write down a code to compute prefix function.
java program with complete 4 oops concepts implemented example
Can java inner class be static?
What is the difference between sleep and wait in java?
What is an example of a constant variable?
Explain a situation where finally block will not be executed?
Explain about anonymous inner classes ?
What is a method type?
Why javac is not recognized?
What is meant by string is immutable?
Is string is a data type?
What is difference between this and super keyword?
What is reflexive association?