Java error: Implicit super constructor is undefined for default constructor

前端 未结 10 1096
借酒劲吻你
借酒劲吻你 2020-11-22 10:28

I have a some simple Java code that looks similar to this in its structure:

abstract public class BaseClass {
    String someString;
    public BaseClass(Str         


        
10条回答
  •  余生分开走
    2020-11-22 11:22

    I had this error and fixed it by removing a thrown exception from beside the method to a try/catch block

    For example: FROM:

    public static HashMap getMap() throws SQLException
    {
    
    }
    

    TO:

    public static Hashmap getMap()
    {
      try{
    
      }catch(SQLException)
      { 
      }
    }
    

提交回复
热议问题