Error
- 25 October
[Fixed] Unsupported class file major version 61 in Java
In this post, we will see how to fix Unsupported class file major version 61 in Java. Reason for Unsupported class file major version 61 in Java You will get this error when you have compiled the class with Java 17(major version 17) and you are trying to run class file under lower java version […]
- 22 February
[Fixed] java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList
In this post, we will see how to fix java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList. ClassCastException is runtime exception which indicate that code has tried to cast an object to a subclass which is not an instance. Reason for java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList Although static method Arrays.asList() returns List, it returns […]
- 21 February
[Fixed] java.util.HashMap$Values cannot be cast to class java.util.List
In this post, we will see how to fix error java.util.HashMap$Values cannot be cast to class java.util.List. Why HashMap values cannot be cast to list? HashMap values returns java.util.Collection and you can not cast Collection to List or ArrayList. It will throw ClassCastException in this scenario. Let’s understand with the help of example: [crayon-63ddf5e744de0276190067/] Output: […]
- 20 February
[Fixed] Unable to obtain LocalDateTime from TemporalAccessor
In this article, we will see how to fix Unable to obtain LocalDateTime from TemporalAccessor in Java 8. Unable to obtain LocalDateTime from TemporalAccessor : Reason You will generally get this error, when you try to convert String to LocalDateTime and Formatted String does not have time related information. Let’s understand with the help of […]
- 15 April
[Solved] Variable might not have been initialized in Java
Learn about how to solve Variable might not have been initialized in Java.
- 30 December
[Solved] Class names are only accepted if annotation processing is explicitly requested
Learn about how to fix class names are only accepted if annotation processing is explicitly requested in java.
- 30 December
[Solved] Exception in thread “main” java.util.InputMismatchException
Learn about how to fix java.util.InputMismatchException.
- 29 December
[Solved] uses unchecked or unsafe operations. recompile with -xlint:unchecked for details.
Learn about how to resolve uses unchecked or unsafe operations. recompile with -xlint:unchecked for details.
- 29 December
[Fixed] uses or overrides a deprecated api. recompile with -xlint:deprecation for details.
Learn about how to fix uses or overrides a deprecated api in java.