Answer:
in the code snippet below, c. When System.out.println(a2) is executing, the toString() method is called.
d. When System.out.println(a1) is executing, the toString() method in class A gets called.
Explanation:
public class Test{
public static void main(String[] args){
Object a1 = new A();
Object a2 = new Object();
System.out.println(a1);
System.out.println(a2);
}
}
class A{
int x;
@Override
public String toString(){
return "A's x is " + x;
}
}
It’s b. correct me if i’m wrong i’m sorry
Answer:
The correct answer is 16 bit.
Explanation:
The main role of the transport layer provided the communication channel of the process which are running in a different host. When the information flows there is always traffic that is arisen but the transport layer aimed is that process will go at the correct node and received at the proper destination. The 16-bit number specifies that the process or node is running in the networked traffic.