This is my code:
import java.io.*;
import java.sql.*;
import java.io.*;
import java.sql.*;
class Vehicle{
public void park()throws IOException {//compiletime checked
}
}
class Car extends Vehicle{
public void park()throws RuntimeException{//compile time unchecked
//
}
}
Why compile time unchecked exceptions is legal here?