Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
7 user(s) are online (6 user(s) are browsing encyclopedia)

Members: 0
Guests: 7

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

Return type

In computer programming, the return type constrains the resulting value from calling a method or function. It must be explicitly mentioned when declaring a function in many of the high-level programming languages, such as Java programming language, C plus plus, C programming language and many others.

A Java example could be:

public int someMethod()

In this example, the return type is int and must be explicitly declared in order conform to the syntax of Java. This means that when that method is completed, it will return a value of type int.

In Java, the return type can be any object or interface type, or any of the primitive types. An example of a Java object type is java.lang.String, whereas char is a primitive Java type.