public class A
{
static int print(int a)
{
System.out.println(“I am print function”);

return 10;
}
static void print2()
{
System.out.println(“I am print function2”);

}

static void print3(int a)
{
System.out.println(“I am print function3”);

//return 10;
}

static int print4()
{
System.out.println(“I am print function4”);

return 10;
}

public static void main(String[] args)
{
int c;
c=print(20);
System.out.println(c);
print2();
print3(3);

c=print4();
}

}


Leave a Reply

Your email address will not be published. Required fields are marked *