Sec Website
Sec Website
ANS: 543214321321211
ANS: public List<Integer> foo (set<CharSequenece>m){…}
Public List<Integer>foo(TreeSet<String>m){…}
ANS: 4
ANS: 08
ANS: [A,B,C]
[A,B,C]
ANS: module PrintServiceProvider {
Requires PrintServiceAPI;
Provides org.printservice.spi.Print with
Com.provier.printservice.spi;
}
ANS: The compilation fails.
ANS: abcd
ANS: Double d= list.get(0);
ANS: System.out.println(Season.SPRING);
System.out,println(Season.valueOf(“SPRING”));
System.out.println(sA[1]);
ANS: setGCount(g);
aCount=a;
ANS: e f j B
ANS: new Comparator<String>() {
public int compareTo(String str1, String str2) {
return str1.compareTo(str2);
};
ANS: This may not print the same result each time the
program runs.
ANS: Myinterface1
Myinterface3
ANS: Good night, Potter.
ANS: 357
ANS: line n4
ANS: @FunctionalInterface
interface InterfaceD {
int breed(int x);
}
interface InterfaceB {
int GERM = 13;
public default int getGERM() { return get(); }
private int get() { return GERM; }
public boolean equals(Object o);
int breed(int x);
}
ANS: @Resource(“Customer1”)
ANS: A cannot be final.
B cannot be final.
B is a Subtype of A.
ANS: 1 2 [1,2,3,four] 3 4
ANS: UnaryOperator u =(var i) -> (i*2);
ANS: c
C++
JAVA-
GO-
KOTLIN
ANS: hey oh hi yo ey
ANS:java.base
ANS: DriverManager.getConnection(“jdbc:derby:com”)
ANS:Sphynx
Oxical
Laperm
Koral
Bengal
abyssinian
ANS: 1.99,2.99,0.0
ANS: The memory allocated for john object can be reused in
line 1.
ANS:
System.out.println(IntStream.rangeClosed(1,100).count());
System.out.println(IntStream.rangeClosed(0,100).map(x-
>x).count());
ANS: 80
ANS: set(map.values());
Super.set(map.values());
ANS: The program prints nothing.