Coding Fun Java Java Interview Question And Answer Static Field in Java Explain Java Interview Question

Java Interview Question And Answer Static Field in Java Explain Java Interview Question





Java Interview Question And Answer Static Field in Java Explain Java Interview Question

What does it mean that a method or field is “static” ? Java Interview Question and Answer ?

1.Static variables and methods are instantiated only once per class.
2.In other words they are class variables, not instance variables.
3.If you change the value of a static variable in a particular object, the value of that variable changes for all instances of that class.
4.Static methods can be…

Tags: , , , , , , , ,

1 thought on “Java Interview Question And Answer Static Field in Java Explain Java Interview Question”

Leave a Reply

Your email address will not be published. Required fields are marked *