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 / maharajan j

Static methods we can call without class reference.We don't
need to create an object of that particular class.

For example:
class A{

static void disp(){
sysout("Java")
}
}
class B{

B(){
A.disp();
}

}

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between graph and tree?

1154


Which data type is a class in java?

1049


Can you explain inner class.

1138


Why is stringbuffer called mutable?

1042


Why we use protected in java?

1022


Is array size fixed in java?

1026


What is difference between ++ I and I ++ in java?

1027


Give me some null interfaces in java?

1114


What does null mean in java?

1125


What is a final class ?

1270


What do you mean by composition in java?

1075


What is user defined exception in Java?

1129


What are keyboard events?

1207


what are Hostile Applets?

2144


What is meant by object oriented programming – oop?

1045