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

Explain a few methods of overloading best practices in java?

987


Which is better 64 bit or 32 bit?

944


What are the differences between stringbuffer and stringbuilder?

1062


What is a control variable example?

1021


Wha is the output from system.out.println(“hello”+null); ?

1145


Can you run java program without main method?

1064


What is a databasemetadata?

948


How do generics work in java?

1033


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

1044


What is the difference between the direct buffer and non-direct buffer in java?

1032


Why are data types important?

1095


What is double parsedouble in java?

1051


How to remove the trailing spaces from a string?

1275


What is the purpose of a parameter?

1075


How do you access command-line arguments within the code?

1061