Java program codes
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment