<span>Fire extinguishers should be stored in a
boat at the engine area and near the operator. A fire extinguisher should be
put near the engine because the engine of the boat is a fire hazardous place
and this is the area where a fire could start.
The fire extinguisher should be installed properly using a mounting
bracket to hold the extinguisher in place. There are different types of
extinguishers that should be installed in the boat, these are type A, B, and C
extinguishers. Type A extinguishers can turn off the fire caused by combustible
solids like wood and paper. Type B extinguishers can turn off fire caused by
gasolines, oil, and greases. While Type C extinguishers can turn off fire
caused by an electrical problem.</span>
Answer:
The answer to this question is given below in the explanation section.
Explanation:
When you will run the given code of java in this question. You will get an error and nothing will get printed in the response of the result. Because, in Java, you can't add the two array objects. The reason behind it, java does not support operator overloading. You cannot use the plus operator to add two arrays in Java
. It will give you the compile-time error.
There is a method to add two arrays in the Java program is to iterate over them and add individual elements and store them into a new array. This also becomes complex, if you having arrays of different sizes. To go through this method, you have to build a method that will through an illegal exception in case of a mismatch in the sizes of the arrays.
As in the given code, when you execute the first print statement:
System.out.println(num1.get(0)+1);
It will produce error because first type is object and second is int. So, you cannot add object and int value.
When you will execute the given second print statement:
System.out.println(num1.get(1)+ num2.get(0));
it will also produce error, because you cannot add object in Java using + binary operator because in this statement first and second type are both objects.
guess you better read the directions and just read the book yourself and find the answer.
Answer:
Hardware layer
Explanation:
The hardware layer's job is to maintain and put to action central processor units and memory. Hardware layer first check the availability of the for mentioned duo and then decides the need to put one or another into action. Physical and data link layers act the same in the hardware layer. They bot are waiting to be called in action