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...

How do you use, call, and access a non-static method in Java?

Answer Posted / glibwaresoftsolutions

The static keyword does not have to appear before the method name.
Like any generic method, call a non-static method.
• Any static variable or method can be accessed by non-static methods without requiring the creation of a class instance.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is blank final variable?

1113


How to change the priority of thread or how to set the priority of thread?

1090


What are loops in java?

1347


Explain wait(), notify() and notifyall() methods of object class ?

1110


How does varargs work in java?

1139


Is empty string in java?

1252


What are the three types of design patterns?

1012


What are features of java?

1080


What is an anonymous class in java?

1160


How can you share data between two thread in Java?

979


What is a map? What are the implementations of map?

1148


What is the method to expand and collapse nodes in a jtree?

1097


Is main an identifier?

1053


Give the hierarchy of inputstream and outputstream classes.

1154


What is purpose of keyword void?

1090