Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

how to represent static function

OpenStudy (anonymous):

public static "datatype" methodName(parameters) { } eg. public static void displayAll(String[] names) { }

OpenStudy (anonymous):

then to call a method you have to use the java class name infront of the method. for example say the java class name is "contacts" you would call the method with "contacts.displayAll(names);"

OpenStudy (anonymous):

thanx rahul

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!