User-submitted Java Projects

27
2551 reads

February 20, 2013

Handling Exception


This example demonstrates how to catch an exception and continue.

34
3012 reads

February 20, 2013

Try-Catch


This example demonstrates the try-catch block.

29
2550 reads

February 20, 2013

Arithmetic Exception


This example depicts a most simple example of Arithmetic Exception: division by zero. If we try to divide a number by zero, then it gives an Arithmetic Exception message.

40
3335 reads

February 20, 2013

Division by zero


This example demonstrates a Division by 0 exception.

21
2499 reads

February 19, 2013

Dynamic Method Dispatch


Dynamic method dispatch is the mechanism by which a call to an overridden method is resolved at run time, rather than compile time.
This example demonstrates dynamic method dispatch.

32
2614 reads

February 19, 2013

Abstract Methods&Classes


This example demonstrates using abstract methods and classes.

34
2456 reads

February 19, 2013

Final methods


A method can be made final by adding keyword 'final' before it. Final methods are those which cannot be overriden.

24
2526 reads

February 19, 2013

Final classes


Final classes are those classes which cannot be inherited. This example demonstrates that point.

36
2802 reads

February 19, 2013

Abstract


This example is a simple demonstration of abstract.