<span>public static int methodName(int a, int b){
a = a * 2;
b = b * 2;
}
</span><span>int result = doubling(5, 10<span>);
System.out.println(result);
//result would be 10, 20</span></span>
Answer:
Interface
Explanation:
Java does not supports multiple inheritance by class, but we can implement multiple inharitacnce in java using interface, with interface we uses implements keyword.
Example-
Declare interface like below code -
interface parent{
}
and use in child class like below code -
class Child1 implements interface{
}
class Child2 implements interface{
}
Answer:
448 strings
Explanation:
Each bit string can be filled by two ways either 0 or 1. If the bit strings of length contain the substring '111000' we therefore need a substring of length 6.
The selection of bits starts from the 1st bit to 7th bit enclosing the substring 111000 and ensuring that the length 6 are all filled. So, there will be 7 ways to contain this substring.
The total ways to contain this substring = 7*2^6 =448
Therefore 448 strings of length 12 contain the substring '111000'.
Answer:
hardware-initiated reset
Explanation:
Once in protected mode, the 80286 is designed to remain there until it is reset by hardware.
__
External hardware can be designed so that software can cause such a reset. In the 1984 PC/AT, such hardware combined with code in the BIOS allowed real mode re-entry and returned execution control to the program that caused the reset.