• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scope variables

 
madhuchilipi reddy
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wt are the scope variables in java
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can you explain your question clearly ?

bye for now
sat
 
Henry Wong
author
Marshal
Pie
Posts: 20881
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by madhuchilipi reddy:
wt are the scope variables in java


There is no such thing as "scope variables" in Java. (or any programming languages that I know of).

The "scope" is a characteristic of a variable, that you should understand. Basically, it defines the context for which the variable is valid. For example, a local variable defined within the method, is only valid for the method call. It can't be accessed from other methods, nor does its value persist over multiple method calls.

Henry
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic