What is the effect of not catching the value of the method that returns a value?
Does it develop complications like memory issues if the return value was not caught.
Example code snippets:
//reference types
public Object[] thismethodreturnsvalue(){
return new Object[]{new Object(),new Object(),new Object()};
}
//primitive types
public int thismethodreturnsint(){
return -1;
}
public static void main(String a[]){
thismethodreturnsvalue();
thismethodreturnsint();
}