Beyond Knowing
Ed Tools
Play Quiz
Sign in
Join Sookshmas
Beyond Knowing
Jobs
Ed-Tools
Play Quiz
Nida Fathima
Wall
Questions
e-Notes
Calculations
MCQs
News/Article
Kinds of variables in Java and its use.
Java has three kinds of variables namely,the instance variable,the local variable and the class variable.
Local variables are used inside blocks as counters or in methods as temporary variables and are used to store information needed by a single method.
Instance variables are used to define attributes or the state of a particular object and are used to store information needed by multiple methods in the objects.
Class variables are global to a class and to all instances of the class and are useful for communicating between different objects of all the same class or keeping track of global states.
Engineering-CS
Engineering-IS
mca
SEM-IV
AIT Bengaluru
Java
Posted on
by
Score
Share
Views
Comment(s)
Please
Login
to post your answer or reply to answer
Recent e-Note Comments
Recent e-Notes
Top Scored e-Notes
Scroll
×
Login to India's fastest growing social media for Self-Learners!
Sign in with Google
OR
Not registered?
Create an account
Forgot Password?
×
Join India's fastest growing social media network for learning and education!
Sign in with Google
OR
Already a registered user?
Login