Find the output of the following Programs:
1. public class Script1
{
public static void main(Object[]args){
int result = add(1, 2);
System.out.println(result);
}
int add(int x, int y)
{
return x+y;
}
double add(int x, int y)
{
return x+y;
}
}
2. public class Script2
{
public static void main(Object[]args){
String str1 = "Hello";
String str2 = "Hello";
String str3 = new String("Hello"); //Using...