0% found this document useful (0 votes)
5 views1 page

Java Arrays: Types, Programs & Concepts

The document provides an overview of arrays in Java, including definitions, types, and key concepts such as jagged arrays and ArrayIndexOutOfBoundsException. It also poses questions and programming tasks related to array operations, such as reading values, finding sums, and performing matrix operations. Additionally, it discusses the advantages and disadvantages of using arrays.

Uploaded by

selene6141744
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Java Arrays: Types, Programs & Concepts

The document provides an overview of arrays in Java, including definitions, types, and key concepts such as jagged arrays and ArrayIndexOutOfBoundsException. It also poses questions and programming tasks related to array operations, such as reading values, finding sums, and performing matrix operations. Additionally, it discusses the advantages and disadvantages of using arrays.

Uploaded by

selene6141744
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

a.

ARRAYS IN JAVA
1. What is an array in Java?
2. What are the types of an array?
3. Is it possible to declare array size as negative?
4. What is the difference between int array[] and int[] array?
5. What do you understand by the jagged array?
6. What happens if we declare an array without assigning the size?
7. When ArrayIndexOutOfBoundsException occurs?
8. what are the advantages and disadvantages of an array?
9. Write a program to read n number of values in an array and display it in reverse order
10. Write a program to find the sum of all elements of the array
11. Write a program to print all unique elements in an array.
12. Write a program to find the maximum and minimum element in an array.
13. Java Program to Print Odd and Even Numbers from an array
14. Write a program to sort elements of array in ascending order
15. Java Program to print the elements of an array present on odd position.
16. Program to find the pairs in the array
eg:[10 20 10 10 30 20 30 10 ]
output:4
17. How to Sort an Array in Java
18. Write a program to implement sparse matrix
19. Write a program to implement matrix addition
20. Write a program to implement matrix multiplication
21. Write a program to implement unit matrix
100
010
001

You might also like