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 is flush () in java?
Write a program to check string is palindrome without using loop?
What is literal example?
What are keywords in programming?
What is unmodifiable list in java?
What is toarray method in java?
What is extension method in java?
Explain enumeration in java?
How do you break a loop?
What are the four integer types supported by java?
What technique is carried out to find out if a particular string is empty?
What is tostring () method?
What is null data type?
Can I declare class as static or private?
I want to print “hello” even before main is executed. How will you acheive that?