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 a java predicate?

951


Describe the process as to how substring() methodology mechanisms in java.

1112


Does constructor creates the object ?

1027


What is a parameter in simple terms?

985


Discuss different types of errors that generally occur while programming.

1027


What is a jagged array in java?

1098


In the below example, how many string objects are created?

1042


Is there any difference between synchronized methods and synchronized statements?

1089


What are the different http methods?

1024


How to store image in arraylist in java?

966


What is double checked locking in singleton?

1044


What are the main features of java?

963


How to make a read-only class in java?

1148


What do you mean by hashing?

1096


How do I get 64 bit java?

1087