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 is the difference between a method and a function in alice?

0 Answers  


is there a separate stack for each thread in java? : Java thread

0 Answers  


What is t in generics in java?

0 Answers  


I have 2 objects inside one object(vector). how can i serialize one of them. I dont want to serialize the second one

3 Answers   ABC, L&T,


What are the Main functions of Java?

0 Answers   Akamai Technologies,






Explain polymorphism citing an example.

0 Answers   Amazon,


How the elements are organized in GridBagLayout?

1 Answers  


What is * argv?

0 Answers  


Why are global variables used?

0 Answers  


Can we use switch statement with strings?

0 Answers  


When you say String is immutable, what do you mean by that? Say I have String s = "Ness" s= s+"Technologies"; What will happen? If the value gets appended, then what is the meaning of immutable here?

5 Answers   Ness Technologies,


How to create an instance of a class if the class has private constructor?

3 Answers  


Categories