

MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
How to copy contents of array? |
A. | System.arrayCopy() |
B. | Array.copy() |
C. | Arrays.copy() |
D. | Collection.copy() |
E. | |
Answer» B. Array.copy() | |
2. |
|
A. | Array.sort() |
B. | Arrays.sort() |
C. | Collection.sort() |
D. | System.sort() |
Answer» C. Collection.sort() | |
3. |
|
A. | ArrayIndexOutOfBoundsException |
B. | ArrayStoreException |
C. | Compilation Error |
D. | Code runs successfully |
Answer» C. Compilation Error | |
4. |
What is the type of variable "b" and "d" in the below snippet? |
A. | "b" and "d" are int |
B. | "b" and "d" are arrays of type int |
C. | "d" is int variable; and "b" is int array |
D. | "b" is int variable; and "d" is int array |
Answer» E. | |