Core java interview questions on local and instance variable

Core java interview questions on local and instance variable

1. Do interfaces have member variables ?
2. Why there are no global variables in Java ?
3. Can you define private and protected modifiers for variables in interfaces ?
4. What is the default value of the local variables ?

Check out all interview questions:

Leave a Reply

Your email address will not be published. Required fields are marked *