Java Articles

Submit Article
Home » Articles » Java » FundamentalRSS Feeds

Variable modifiers in java

Posted By: Jeanette Greene     Category: Java     Views: 7206

This article explains about variable modifiers available in java with example.

There are seven possible modifiers that may precede the declaration of a variable as listed below.




Is a constant 


Can be accessed only by code in the same class 


Can be accessed only by code in a subclass or the same package 


Can be accessed by any other class 


Is not an instance variable 


Is not part of the persistent state of this class 


Can change unexpectedly 



Didn't find what you were looking for? Find more on Variable modifiers in java Or get search suggestion and latest updates.

Jeanette Greene
Jeanette Greene author of Variable modifiers in java is from Wichita , United States. Jeanette Greene says

View All Articles

Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

No Comment Found, Be the First to post comment!