runtime error and compile time error in java