Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Static Variable can referred in non-static method?

Answer Posted / rableen khurana

Yes we can access static variable in non-static
methods....and we can access instance variable in static
method also with the help of object......

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we define private and protected modifiers for variables in interfaces?

1088


What is meant by javabeans?

1095


What is your platform?s default character encoding and how to know this?

2372


Can you pass functions in java?

1032


How can we avoid including a header more than once?

1040


Can you extend main method in java?

1189


What is the integer of 16?

976


Why do we need autoboxing in java?

999


Define locale.

1040


Can a abstract class be defined without any abstract methods?

1007


What is a substring of a string?

1163


Why can't you declare a class as protected?

1134


Can you declare a private method as static?

1154


What is difference between local variable and global variable?

1026


What are unchecked exceptions in java?

1043