a) malloc
b) alloc
c) new
d) new malloc
Answer
c) new
Explanation:
The new operator is used to allocate a block of memory specified by the size of an array to the array variable.
a) malloc
b) alloc
c) new
d) new malloc
c) new
The new operator is used to allocate a block of memory specified by the size of an array to the array variable.
a. Keyword b. Comment c. Control Structure d. Block Answer: b. Comment Explanation Comment can be used to explain Java code, and to make it
a) Class b) Instance c) Method d) Object Answer d) Object Explanation: Heap space is utilized for the dynamic memory allocation of Java objects and
a) It allows the programmer to think at a more abstract level b) There is less program code to write c) The program will have
a. One b. Two c. Three d. None; the code compiles as it is. Answer: c. Three Explanation First, the watch() method is marked final in
Oracle Certified Tutor/Trainer with 100+ reviews