can we create object for static class in java
Answer Posted / surendra pokuri
we cann't code static outer class.
we can define static nested class.
so we can create instance of static nested class, but no
need to create.
we can use directly
as
outerclass.innercla.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Can we override data members in java?
What do you mean by platform independence? What is an interface?
Explain the difference between extends thread vs implements runnable in java?
Why volatile is used in java?
How do you use parseint in java?
What are streams in java 8?
What are the two categories of data types in the java programming language?
what is the purpose of the runtime class?
What is anti pattern in java?
What does java ide mean?
What is package protected in java?
Highest level event class of the event-delegation model?
What is the difference between the paint() and repaint() methods?
What is constructor chaining in java?
what is meant wrapper classes?