What is the difference between static and non-static
variables?
Answer Posted / sandhya reddy
Static Variables are loading when class is loading to the JVM.
Non-Static Variables are loading only when an object is
creating for the particular class.Non- Static variables
can't use inside Static Methods untill and unless creating
an object of that class.with the object reference only we
can asle to use Non-static variables inside Static methods,
But inside Non-Static methods we able to use static
variables without creating any object.
Is This Answer Correct ? | 11 Yes | 6 No |
Post New Answer View All Answers
Explain about assignment statement?
What is an enumeration?
What is the purpose of the system class in java?
What is purpose of keyword void?
How is Object Oriented Programming different from Procedure Oriented Programming?
What is qms certification?
Does windows 10 need java?
Describe the process as to how substring() methodology mechanisms in java.
What are three advantages of using functions?
Is sizeof a preprocessor?
Is .net better than java?
State one difference between a template class and class template.
What are the advantages of arraylist over arrays?
Can we have any code between try and catch blocks?
What is the largest number a double can hold?