DEV Community

hema latha
hema latha

Posted on

What is return data types ?

A return type may be a primitive type like int,float, double a reference type
void type returns nothing.
there are few important things to understanding about returning the value the type of data returned by a method must be compatible with the return type specifyed by the method

Top comments (0)