What happens when a class is made static like if a field or
member is made static it becomes class variable and is
shared by all the object of the class?
Answer Posted / arvind verma
If a class is made static then we can access it's methods &
variables by using class name , no need to create class
object
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you override a private method in java?
Can a static member function access member variable of an object?
What is string literal in java?
Is string is a data type in java?
How to find the given number is a prime number or not by getting input from the user
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is the reason behind using constructors and destructors?
how to split string in java?
What are the topics in core java?
Why heap memory is called heap?
What is string in java?
Define how does a try statement determine which catch clause should be used to handle an exception?
How do you sort in ascending order in java?
What is multiple inheritance? Is it supported by java?
What are the types of inner classes (non-static nested class) used in java?