Java/ J2EE, Oracle Adf Blog
Thursday, 12 February 2015
Sample Program on Static non static and local variable
public class Variables {
int x=12; // instance variable
static int y=13; // static variable
void k()
{
int d=12; //local variable
}
public static void main(String[] args) {
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment