Question d’entretien chez Radhika

One question they asked me was to explain the difference between compile-time and runtime errors in Java. I explained that compile-time errors occur when code doesn’t follow the language’s syntax or rules, while runtime errors happen during program execution, such as dividing by zero or accessing invalid memory. I also gave a short example in Java to make my explanation clearer.