Class Java Script
Sunday, 21 April 2013
Class -9-
package net.dharmaraj;
import java.util.Date;
public class Example
{
public static void main(String ar[])
{
Date d1=new Date(99,11,31);
Date d2=new Date(99,11,31);
method(d1,d2);
System.out.println("d1 is "+d1 +" \n d2 is"+d2);
}
public static void method(Date d1,Date d2)
{
d2.setYear(100);
d1=d2;
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment