. Differentiate between instance and local variables.
Answer Posted / nashiinformaticssolutions
For instance, variables are declared inside a class, and the limited to only a specific object.
A local variable can be anywhere inside a method or a specific block of code. Also, the scope is limited to the code segment where the variable is declared.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is function and its uses?
When should I use stringbuffer?
How many types of exception can occur in a java program?
What is collection class in java? List down its methods and interfaces.
What java is used for?
Give the hierarchy of inputstream and outputstream classes.
Can a class be final?
What is the difference between class & object?
Is multiple inheritance supported by java?
Convert a BST into a DLL and DLL to BST in place.
What is the major drawback of internal iteration over external iteration?
what do you mean by classloader?
What are the differences between processes and threads?
When is the finally clause of a try-catch-finally statement executed?
What is math exp in java?