• 28 December

    [Fixed] java.lang.classnotfoundexception: sun.jdbc.odbc.jdbcodbcdriver

    In this post, we will see how to resolve java.lang.classnotfoundexception: sun.jdbc.odbc.jdbcodbcdriver exception in java. Problem: java.lang.classnotfoundexception: sun.jdbc.odbc.jdbcodbcdriver This exeception comes in Java 8 because sun.jdbc.odbc.jdbcodbcdriver has been removed from JDK and JRE. This class is used to connect database using Object database connectivity driver such as Microsoft access. Since Java 8 does not support jdbc […]

  • 28 December

    [Fixed] char cannot be dereferenced in java

    Learn about how to fix error char cannot be dereferenced in java.

  • 28 December

    [Fixed] int cannot be dereferenced in java

    In this post, we will see how to resolve error int cannot be dereferenced in java. As we know that there are two data types in java primitive such as int, long, char etc Non primitive such as String, Character etc. One of the common reasons for this error is calling method on a primitive […]

  • 25 December

    [Fixed] Invalid method declaration; return type required

    Learn about how to fix Invalid method declaration; return type required in java.

  • 23 December

    [Fixed] Error: Identifier expected in java

    Learn about how to fix error Identifier expected in java in multiple ways.

  • 22 December

    [Fixed] bad operand types for binary operator in java

    Learn about how to resolve bad operand types for binary operator in java.

  • 24 September

    Missing return statement in java

    In Java, missing return statement is a common error which occurs if either we forget to add return statement or use in the wrong scenario. In this article, we will see the different scenarios whenmissing return statement can occur. Missing return statement Here are the few scenarios where we can get Missing return statement error. […]

  • 21 April

    Cannot find symbol Java

    In this post, we will see how to solve Cannot find symbol in java. You will get this error when you have declared something that compiler does not understand. The compiler creates list of identifiers when you compile any program. If compile can not understand any of the identifiers, you will get this error. This […]

  • 27 March

    Understanding java.lang.reflect.InvocationTargetException and why it occurs

    In this post, we will see about java.lang.reflect.InvocationTargetException. You might get java.lang.reflect.InvocationTargetException while working with reflection in java. Reason for java.lang.reflect.InvocationTargetException Reflection layer throws this exception when calling method or constructor throws any exception. java.lang.reflect.InvocationTargetException wraps underlying exception thrown by actual method or constructor call. Let’s see this with the help of example: Create a […]