Can a class be declared as static?

Can a class be declared as static?

Hi,

Can a class be declared as static?

thanks,

View Answers

April 11, 2013 at 3:54 PM

hi,

We can not declare a class as static. Method can be declare as static. For more related to classes visit the link

http://www.roseindia.net/java/master-java/classes.shtml

thanks,









Related Tutorials/Questions & Answers:
Can a class be declared as static?
Can a class be declared as protected?
Advertisements
Can a abstract class be declared final?
ModuleNotFoundError: No module named 'static3'
ModuleNotFoundError: No module named 'staticx'
ModuleNotFoundError: No module named 'statico'
ModuleNotFoundError: No module named 'statico'
variables and methods declared in abstract class is abstract or not
Can a main method be declared final?
Can a method inside a Interface be declared as final?
Can a method inside a Interface be declared as final?
ModuleNotFoundError: No module named 'statick'
ModuleNotFoundError: No module named 'statick'
ModuleNotFoundError: No module named 'Hatak_Statics'
ModuleNotFoundError: No module named 'statick-fortify'
ModuleNotFoundError: No module named 'statick-md'
ModuleNotFoundError: No module named 'statick-tex'
ModuleNotFoundError: No module named 'statick-web'
ModuleNotFoundError: No module named 'statick-fortify'
ModuleNotFoundError: No module named 'statick-md'
ModuleNotFoundError: No module named 'statick-tex'
ModuleNotFoundError: No module named 'statick-web'
ModuleNotFoundError: No module named 'Flask-Statics-Helper'
ModuleNotFoundError: No module named 'django-foundation-statics'
ModuleNotFoundError: No module named 'Flask-Statics-Helper'
ModuleNotFoundError: No module named 'statick-rosm-registry'
ModuleNotFoundError: No module named 'statick-soartech-unofficial-mappings'
Java Abstract Class
Can a Class extend more than one Class?
there are class A & class B.How can i get members of class A& B?
Abstract Class in Java
ModuleNotFoundError: No module named 'declared'
ModuleNotFoundError: No module named 'declared'
Why is the main method declared static?
Can you create an object of an abstract class?
Can you instantiate the Math class? - Java Beginners
Can we instantiate abstract class in Java?
Example of a class variable (static variable)
HttpServlet is declared abstract
Inner class in java
can we use class in jsp which implements interface
Can a abstract class be defined without any abstract methods?
java anonymous class
Can I have multiple main() methods in the same class?
How can i pass the valus from a JSP to the action class???
Class
can we add primitive data to wrapper class object
can we use scanner class,class , object and methods to get output without using constructor ????
What if the main() method is declared as private?
class

Ads