Take FREE!! Online Cocubes Mock Test to Crack various Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.
Technical Discussion :: Java

10 / 66

What is the difference between static and non-static variables?

Answer:

'static' is a keyword available in Java. The variable that is declared as static, is called as class variable. All instances share the same copy of the variable.



Eg.: static int y=1;



 

Asked In :: iGateSyntel Inc.Accenture

Post Your Answer Here:


Rate This: +1 -0      +
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.