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 to call static method?

Answer Posted / ranganathkini

A static method may be called in 2 ways:

1. Thru the class reference
2. Thru the instance reference of the class

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

1056


Explain the difference between association, aggregation and inheritance relationships.

1089


What is the difference between Array and Hash Table?

1032


Why is the main method static?

1160


How will you add panel to a frame?

1110


Is there any tag in htm to upload and download files?

1047


What is a copy constructor in java?

1126


How to sort elements in a parallel array in java?

893


why java uses class level type casting ?

2665


What was java originally called?

956


What is string intern in java?

1025


How do you input a string in java?

1081


Can we declare a class as abstract without having any abstract method?

1001


Is a class subclass of itself?

1088


Can sleep() method causes another thread to sleep?

1042