What is the use of static variable in a java class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the use of static variable in a java class?

8th Nov 2016, 12:41 AM
Raghunath S
Raghunath S - avatar
2 Answers
0
it mean that variable is not possible to be change, i think like that
8th Nov 2016, 12:49 AM
Mafmudin (ig:tw:: @mafmudin)
Mafmudin (ig:tw:: @mafmudin) - avatar
0
like you can not create an instance of a static class, a static variable is can not to be used in an instance of the class.
8th Nov 2016, 1:08 AM
Julio Cezar
Julio Cezar - avatar