What is the difference between static and non-static
variables?
Answer Posted / pravallika
in case of static variables memory can be allocated only at once and these variables can access with help of class name but where as non static variables have memory can be allocated in separate locations.And these variables can access with help of object
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Is static variable stored in heap?
How to do encapsulation in java?
How do you read and print a string in java?
What are the two types of java?
Are constructors methods?
What are the 5 types of research methods?
What do you mean by flow of struts?
Can you explain the usages of class.forname()?
why an outer class cannot be declared as private?
what is the difference between thread and runnable types? : Java thread
How do you escape in java?
What is an object in java and how is it created?
Why we do exception handling in java and how many types of exceptions are there?
What is the epoch date?
What is polymorphism in java? What are the kinds of polymorphism?