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 is mysql driver class name?

1145


What is the basic difference between string and stringbuffer object?

1083


who can i handle multiple client in RMI

1894


What is slash r?

1011


What does n mean?

1000


Explain all java features with real time examples

1719


What is the final class modifier?

1039


Difference between a process and a program?

1113


how to one war file class to another war file class?

2076


What is the role of the java.rmi.naming class?

1069


Can we compare two strings in java?

1022


What is wrapper class example?

997


What is exception hierarchy in java?

1010


Why generics are used in java?

1048


What is difference between throw and throws ?

1136