I know this question is simple but I could not find an answer anywhere. If I had a method like this:
public long getValue()
{
int test = 1;
return test;
}
Would this cause any issues. The code compiles and runs just fine. Do I need to cast (long)
on the int
before returning it?