Answers for "return 0 and return 1 in java"

0

return 0 and return 1 in java

The values 1 and 0 are of type int and are not implicitly 
convertible to boolean . So when you return 1, you are basically 
returning True as the final value of the function while return 0 is 
basically returning False as the final value of the function.
Posted by: Guest on December-05-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language