more than one return type from method
<p>Is there a way to get different return type from a method like int or String or double?</p>

<p>what i can think of is using generics wildcard,not sure</p>

<p>like: </p>

<pre><code>public x m1(){
//implementation
}
</code></pre>

<p>x can be int,string,long etc</p>
