Predict the output of the following code
public class Sum
{
public double sum (double x,double y )
{
return(x+y);
}
public static void main(String args[])
{
Sum sc=new Sum();
System.out.println(sc.sum(20,30));
}
}

Posted on by