Get a guaranteed software dev job of ₹5-40 LPA | Apply now for free!

Epam Questions Solve | Round 3 | Codewindow.in

class A{
	private void printName(){
		System.out.println("Value-A");
	}
}
class B extends A{
	public void printName(){
		System.out.println("Name-B");
	}
}
public class Test{
	public static void main(String[] args){
		A a = new B();
		a.printName();
	}
}
public static void main(String[] args){
		String a = "epam";
		String b = "epam";
		a.concat(b);
		System.out.printn(a);
}
import java.util.*;
import java.util.stream.IntStream;
class GFG
{
public static void main(String[] args)
{
IntStream stream = IntStream.of(2,3,4);
int answer = stream.reduce(0,(num1,num2)->(num1+num2)*2);
System.out.println(answer);
}
}
You Missed