Sunday, 11 September 2011

return in java

class Return
{
public static void main(String args[])
{
boolean t=true;

           System.out.println("Before return Statement");  
           if(t) return; // return is caller
       System.out.println("This line won't execute");
   }
}


No comments: