Wednesday, 12 September 2012

Java program codes: 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:

Post a Comment