What are the common multiple choice questions in Android interview questions?
Today, I will talk to you about the common multiple choice questions in the Android interview questions, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
1. Which of the following statements is true about memory collection? (b)
Programmers must create a thread to free memory
B. the memory collector is responsible for releasing useless memory
C. The memory collector allows programmers to release memory directly.
D. The memory collector can release memory objects at a specified time.
two。 The following exception belongs to Runtime Exception is (abcd) (multiple selections)
A 、 ArithmeticException
B 、 IllegalArgumentException
C 、 NullPointerException
D 、 BufferUnderflowException
How much () is 3.Math.round (11.5)? Math.round (- 11.5) equals how much (c).
A, 11,-11 B, 11,-12 C, 12,-11 D, 12-12
Explanation: the rounding algorithm in java is to add 0.5 to the original value, and then take the value closest to it.
4. The output of the following program segments is: (B)
1. Void complicatedexpression_r () {
2. Int Xerox 20, YPY 30
3. Boolean b
4. Breadx > 50 years > 60 | | x > 50 years