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 / 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 |
What is an iterator interface in java programming?
Can an abstract class be a final class?
What is the entry point in Java, and how is it written?
Is 'sizeof' a keyword?
Is space a character in java?
Why we can not force Garbage Collection?
What is "Java Native Interface" and how to use it?
What does nullpointerexception mean?
Where are local variables stored?
What is nullpointerexception in java?
What are java threads?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?