Answer to Question #19862 in Java | JSP | JSF for nohra

Question #19862
11-10. What can you tell about the following method?
public void myMethod( )
{
}
1
Expert's answer
2012-11-30T04:57:02-0500
public means that the method is visible and can be called from other objects of other types. Other alternatives are private, protected, package and package-private.

void means that the method has no return value. If the method returned an int you would writeint instead of void.

body of the method is e,pty - this method does nothing

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS