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
what do you mean by classloader in java?
How you can force the garbage collection?
Can we create constructor in abstract class ?
How many types of methods are there in java?
please send me hr interview questions in it industry
How an object is serialized in java?
How many threads can java run?
what state does a thread enter when it terminates its processing? : Java thread
What is null in java?
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent
What is the difference between interface & abstract class?
Which collection is sorted in java?
What is a lambda expression ? What's its use ?
How do you break a loop?
Variables used in a switch statement can be used with which datatypes?