?
Solved

Return type

Posted on 2008-10-09
4
Medium Priority
?
194 Views
Last Modified: 2013-11-23
Hi

I have a question.

what's the return type in this code?

Is it setDate?

public void setDate(int day, int month, int year)

Open in new window

0
Comment
Question by:bt1942
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 60

Accepted Solution

by:
Kevin Cross earned 1600 total points
ID: 22682956
(void) ==> Nothing is returned.  If you think in terms of subs and functions, this would be a sub.
0
 
LVL 60

Assisted Solution

by:Kevin Cross
Kevin Cross earned 1600 total points
ID: 22682978
If you need further clarification, see this portion of the Java Tutorials:
http://java.sun.com/docs/books/tutorial/java/javaOO/methods.html
0
 
LVL 10

Assisted Solution

by:peetm
peetm earned 400 total points
ID: 22683097
Subroutines are invoked for their 'behaviour' [or 'side effect'], whereas functions are invoked, so that the invokation results in some 'value' - the function is resolved to some value that is then used further in an expression.
0
 

Author Closing Comment

by:bt1942
ID: 31504855
Thanks for the comment!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question