Skip to content

Tag Archives: Java-Exception Handling

class Base extends Exception {} class Derived extends Base  {}    public class Main {   public static void main(String args[]) {    // some other stuff… Read More
Output of following Java program? class Main {    public static void main(String args[]) {       int x = 0;       int y = 10;       int z =… Read More
class Test extends Exception { }     class Main {    public static void main(String args[]) {        try {          throw new Test();       }       catch(Test t) {… Read More
Predict the output of following Java program class Main {    public static void main(String args[]) {       try {          throw 10;       }       catch(int e) {          System.out.println("Got… Read More

Start Your Coding Journey Now!