Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

return vs break

public void myMethod()
{
    int i = 10;

    if(i==10)
        return;

    System.out.println("This will never be printed");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #break
ADD COMMENT
Topic
Name
8+5 =