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 / nashiinformaticssolutions

• 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 are the 2 types of java programs?

1105


Which java version is latest?

1025


When to use runnable interface vs thread class in java?

967


What are benefits of java?

1044


What are the different tags provided in jstl?

952


What is preflight request?

1006


Why multiple inheritance is not supported by java?

969


What is the purpose of a parameter?

1064


How can you set the applet size?

1048


how to write a program for sending mails between client and server

2066


What are autoboxing and unboxing? When does it occur?

944


can rmi and corba based applications interact ?

1074


What do you mean by Hash Map and Hash Table?

1080


Write a java program for binary search?

1049


What is the difference between static and global variables and also define what are volatile variables?

1039