• 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 […]

  • 26 March

    [Fixed] no suitable driver found for jdbc

    In this post, we will see how to resolve java.sql.SQLException: No suitable driver found for JDBC. There can be multiple reasons for this exception and let’s see it one by one. connector jar is not on classpath you need make sure you have connector jar on classpath. For example: If you are using mysql to […]

  • 22 March

    [Fixed] insert dimensions to complete referencetype

    In this post, we will see about error insert dimensions to complete referencetype. You will get this error when you are trying to pass primitive objects into generic type declaration but generic always expect a Wrapper class in java. For example: Let’s say you have the below class named InsertDimensionlMain.java. [crayon-60425b00a0d1b289813197/] Above code won’t compile, […]

  • 17 March

    [Fixed] no main manifest attribute

    In this post, we will see how to solve Unable to execute jar- file: “no main manifest attribute”. Problem When you have a self-executable jar and trying to execute it. You might get this error. Unable to execute jar- file: “no main manifest attribute” Solution Maven You might get this error when Main-Class entry is […]

  • 09 October

    [Fixed] Reached end of file while parsing

    In this post, we will see how to solve reached end of file while parsing in java. We generally get this error when we forgot to end code of block(class/method) with }. Let’s understand this with the help of example. [crayon-60425b00a15af730976244/] When you compile above java file, you will get below error. java:8: reached end […]

  • 06 October

    Fix cannot make static reference to non-static method

    In this post, we will see how to solve cannot make static reference to non-static method. Let’s understand this error with the help of example. [crayon-60425b00a18fd545925919/] Above program won’t compile and you will get below compilation error. It says cannot make static reference to non-static method sayHello from the type JavaHelloWorld Why are you getting […]