Search:

Type: Posts; User: Arati2512

Search: Search took 0.15 seconds.

  1. Replies
    5
    Views
    326

    Re: Exception problem...plzz help

    ya...but why?
    Because it is not necessary. If the base class is throwing exception, then derived class may or may not throw. And I am calling derived class's method on object.
  2. Replies
    5
    Views
    326

    Re: Exception problem...plzz help

    Oops....My mistake! It should be like this ---->

    class A
    void disp() throws Exception
    {
    throw new Exception();
    }
  3. Replies
    5
    Views
    326

    Exception problem...plzz help

    Here is my code snippet ----->


    class A
    {
    void disp() throws ArithmeticException
    {
    throw new ArithmeticException();
    }
    }
  4. Replies
    3
    Views
    1,014

    Handling exception in overridden class

    import java.io.*;
    class A
    {
    public void display()
    {
    System.out.println("SuperClass");
    }
    }
    public class B extends A
    {
  5. Replies
    2
    Views
    630

    Simple swing GUI code....Plz help

    I am learning java swing programming and have a problem.
    I want to create simple Bouncing ball application using threading and swing..
    So, I created a JFrame and placed 2 buttons, start and stop,...
Results 1 to 5 of 5