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 java argument list?
Define how can we find the actual size of an object on the heap?
Explain about the dynamic behavior of core java?
Is java a digit method?
What is the difference between a choice and a list?
What is difference between identifier and variable?
Can we start a thread twice in java?
What are wrapper classes in java?
What is mean by collections in java?
What is autoboxing and unboxing?
Is empty set an element of empty set?
Difference between string, stringbuffer and stringbuilder?
How the metacharacters are different from the ordinary characters?
What is blank final variable?
Are global variables initialized to zero?