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 characteristics of java?

1118


What is a jit compiler?

1189


Explain working of call by reference function invoking.

1079


What is the basic difference between string and stringbuffer object?

1137


Why do we need data serialization?

1037


What is the major difference between linkedlist and arraylist?

1116


How can the checkbox class be used to create a radio button?

1079


What is the difference between compare and compareto in java?

1101


What is mean by collections in java?

1250


what do you mean by classloader?

1156


What is a boolean structure?

1130


What is the generic class?

1013


Can we overload destructor in java?

1044


Can we access the non-final local variable, inside the local inner class?

1077


How do you take thread dump in java?

1053