জয়েন লগইন

জাভা ArrayIndexOutOfBoundsException ত্রুটি

🌈জাভা ArrayIndexOutOfBoundsException ত্রুটি কি?

📋জাভা ArrayIndexOutOfBoundsException ত্রুটি হলো অ্যারের সীমার বাইরে ইনডেক্স ব্যবহারের ত্রুটি পদ্ধতি।

⚒️জাভা ArrayIndexOutOfBoundsException ত্রুটি অ্যারের সীমার বাইরে ইনডেক্স ব্যবহারের ত্রুটি ব্যবহৃত হয়।

জাভা ArrayIndexOutOfBoundsException ত্রুটি অ্যারের সীমার বাইরে ইনডেক্স ব্যবহারের ত্রুটি উদাহরণ।

java
public class Main {
  public static void main(String[] args) {

    int[] numbers = {10, 15, 10, 25};

    System.out.println(numbers[4]);
  }
}