Can a class be declared as static?



Can a class be declared as static?..

Answer / Romesh Kumar Singh

Yes, a class can be declared as static. A static class does not have an instance of its own and cannot access non-static members from other instances. It can only contain static members.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Print Vertical traversal of a Binary Tree.

1 Answers   Amazon,


Give us a program to check for parenthesis matching using stack.

1 Answers   Genpact,


Is empty set an element of empty set?

1 Answers  


What is keyword and identifier?

1 Answers  


Is set ordered in java?

1 Answers  


What is static binding and where it occurs?

4 Answers  


Difference between abstract and concrete class ?

1 Answers  


What is an object's lock and which object's have locks in java programming?

1 Answers  


Name the methods in mouse listeners ?

4 Answers  


What does main method?

1 Answers  


What do u mean by variable?

1 Answers  


What is break and continue statement?

1 Answers  


Categories