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 do you mean by data type?

0 Answers  


In Java why we write public static void main(String args[]) why not main()?

46 Answers   Aptech, GE Healthcare, Infosys, Microsoft, New Horizon, Practical Viva Questions, TCS, Wipro,


What is the alternate of 'Inheritance' ?

4 Answers   CybAge, HCL,


What is the use of StringTokenizer class?

0 Answers   Hexaware, Virtusa,


What is jee6?

0 Answers  






What's the purpose of static methods and static variables?

0 Answers  


Can keyword be used as identifier?

0 Answers  


Is java written in c?

0 Answers  


Write a program to print the pattern given below

0 Answers  


What does sprintf mean?

0 Answers  


What is functional interface in java?

0 Answers  


What causes memory leaks in java?

0 Answers  


Categories