What are static objects in java?

Java

1 answer

Answer

1132684

2026-07-17 22:10

+ Follow

Java
Java

There is no separate entity as a static object in Java. The static keyWord in Java is used to signify that the member (either a variable or a method) is not associated to an object instance of the class. It signifies the fact that the member belongs to the class as a whole. The Words static and objects are opposites of one another so you cannot have a static object.

However, you can declare an object as a class level variable which could be referred to as a static object but it will be referred to as a static or class variable and not a static object.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.