J2SE Question:

What is scope?

Tweet Share WhatsApp

Answer:

A characteristic of an identifier that determines where the identifier can be used. Most identifiers in the Java programming environment have either class or local scope. Instance and class variables and methods have class scope; they can be used outside the class and its subclasses only by prefixing them with an instance of the class or (for class variables and methods) with the class name. All other variables are declared within methods and have local scope; they can be used only within the enclosing block.

Download J2SE PDF Read All 214 J2SE Questions
Previous QuestionNext Question
What is SAX?What is security attributes?