Hi,
There a number of situation where we do require to return multiple object from a java function. Let me clear one thing Java as of now does not support this. So how to achieve it ?
1. It returned objects are of same type: make an array and return it.
2. If the returned objects are of different type: wrap it in some other class,make a object and return.
simple and cool
thanks and regards
lalit patel
There a number of situation where we do require to return multiple object from a java function. Let me clear one thing Java as of now does not support this. So how to achieve it ?
1. It returned objects are of same type: make an array and return it.
2. If the returned objects are of different type: wrap it in some other class,make a object and return.
simple and cool
thanks and regards
lalit patel
No comments:
Post a Comment