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 is method reference in java 8?

977


What is the common usage of serialization? What exceptions occur during serialization?

1045


How can we make copy of a java object?

1075


What is square root in java?

1033


Is there any limitation of using inheritance?

1025


What do you understand by private, protected and public?

996


Does collectionutils isempty check for null?

1371


Is singleton class immutable?

909


What is assembly condition codes?

935


What is the program compilation process?

1034


What is a two-pass assembler?

988


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

955


Why declare Main() method as a static in java ?

1021


Why does java does not support multiple inheritance? Explain

923


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

996