• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

What's the return type !

Hi

Now that I know void doesn't return anything what about this code.

What's the return type in this code?
public boolean rentHouse(String address, double weeklyRent, House rentedHouse)

Open in new window

0
bt1942
Asked:
bt1942
  • 4
  • 2
1 Solution
 
Kevin CrossChief Technology OfficerCommented:
Refer to this again: http://java.sun.com/docs/books/tutorial/java/javaOO/methods.html

You tell me what the return datatype is.  Since you understand void from last question, should be able to pick it out from above.
0
 
Kevin CrossChief Technology OfficerCommented:
{not trying to be funny by the way, trying to ensure you learn the concept of where and what the return type is in a method signature so you will be able to recognize when someone changes method signature on you}
0
 
bt1942Author Commented:
mwvisa1 // hi, is it boolean?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Kevin CrossChief Technology OfficerCommented:
yes. exactly right.

modifier returntype methodname(parameters, ...) {
    // code
}

0
 
bt1942Author Commented:
Thanks for the comment!
0
 
Kevin CrossChief Technology OfficerCommented:
No problem.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now