can we create object for static class in java

Answer Posted / shishir

for a top level class a static but you can create a inner
class static and make an object of same, but it will be of
no use as static class you can use with out instantiating.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the string methods in java?

835


What is parameters example?

796


What is collection class in java?

749


What is a class in java?

810


Is java free for commercial?

688


Why hashmap is used in java?

792


What is static class

848


What is files manifesting?

1988


What are selection structures?

760


Can we extend a class with private constructor?

741


What do you mean by an object in java?

891


how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application

1895


When do you get classcastexception?

800


What is a two-pass assembler?

827


What is java jit compilers?

776