java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

Coderanch | Joel Bijapurkar | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Cannot return a generic array (Java in General forum at JavaRanch)

    coderanch.com | 1 year ago
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
  2. 0

    Cannot return a generic array

    Coderanch | 4 years ago | Joel Bijapurkar
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

      at GenericsDemo.MyGenericUtilizer.main()
    2. GenericsDemo
      MyGenericUtilizer.main
      1. GenericsDemo.MyGenericUtilizer.main(MyGenericUtilizer.java:17)
      1 frame