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 static method in Java?

Answer Posted / glibwaresoftsolutions

• The static keyword needs to appear before the method name.
• Use the class (className.methodName) to invoke a static method.
• No non-static instance variables or methods can be accessed by static methods.

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 the full meaning of java?

1095


What is difference between static variable and global variable?

1112


What are the two types of exceptions in java? Which are the differences between them?

1150


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

1064


What is the replace tool?

1250


What does system out println () do?

1067


Are arrays dynamic in java?

1084


Where is the singleton class used?

1079


Does java support function overloading, pointers, structures, unions or linked lists?

1158


What is ‘has a’’ relationship in java?

1275


What is java util function?

1164


Explain the concept of proper inheritance?

1104


Give example to differentiate between call by value and call by reference.

1108


What is the destroy method?

1102


Can a class be protected in java?

1010