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
Describe the syntax of multiple inheritance? When do we use such an inheritance?
What is final method?
What is the difference between class forname and new?
What will happen to the exception object after exception handling?
Can we have this () and super () together?
What exactly is a .class file?
Why there is no call by reference in java?
Tell me a few examples of final classes defined in Java API?
Can you achieve runtime polymorphism by data members?
What do you mean by data type?
What is the equal sign?
How do you sort words in java?
Mention a package that is used for linked list class in java.
What is constructor chaining in java?
What is null mean in java?