 
			 
			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. | Object[] names = new String[3];names[0] = new Integer(0);24.How to sort an array? | 
| A. | Array.sort() | 
| B. | Arrays.sort() | 
| C. | Collection.sort() | 
| D. | System.sort() | 
| Answer» C. Collection.sort() | |
| 3. | int a[], b;int []c, d;23.Which of these is necessary to What is the output of below snippet?specify at time of array initialization? | 
| 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. | |