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
Why for each loop is used?
What is internal iteration in java se 8?
State the difference between creating string as new () and literal.
when you will synchronize a piece of your code? : Java thread
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is module in oop?
How many types of assembly languages are there?
What is the difference between && and & in java?
What is the difference between an interface and an abstract class?
How to convert string to byte array and vice versa?
What is meant by memory leak?
What are heterogeneous objects?
What is the difference between access specifiers and access modifiers in java? 16
What is a Null object?
What Is Composition?