. 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
Why is boolean important?
What restrictions are placed on method overriding in java programming?
What is the size of a string in java?
How do you represent a space in regex java?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
What is use of static method?
What is a condition in programming?
What does exp mean in math?
How do you include a string in java?
What is java lang object?
What is the difference between yield() and sleep()?
Explain polymorphism citing an example.
Can an interface have a constructor?
What are adapter classes?
Explain the concept of proper inheritance?