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?



What happens when a class is made static like if a field or member is made static it becomes 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

Post New Answer

More Core Java Interview Questions

What are the notations in Java?

1 Answers   Cap Gemini,


Is void a data type in java?

0 Answers  


what is ABSTRACTION and what are using in real time project?

1 Answers   iGate,


What is the difference between a checked and an unchecked exception?

0 Answers   Cyient,


What are the differences between path and classpath variables?

0 Answers  






What is the use of static methods?

0 Answers  


what is the logic inside any default constuctor?

2 Answers  


What is the use of http-tunneling in rmi?

0 Answers  


What is data type modifier?

0 Answers  


What if static is removed from main method?

0 Answers  


How many bytes is a character?

1 Answers  


What is byte data type?

0 Answers  


Categories