Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


What is difference between Static and Non-Static fields of a class ?


Non-Static values are also called as instance variables. Each object of the class has its own copy of Non-Static instance variables. So when a new object is created of the same class it will have completely its own copy of instance variables. While Static values have only one copy of instance variables and will be shared among all the objects of the class.
 

asked Sep 13, 2013 in oops by rajesh
edited Sep 12, 2013
0 votes
25 views



Related Hot Questions



Government Jobs Opening


...