User-submitted Java Projects

143
2961 reads
SuperMario3's picture

Submitted by

SuperMario3
Tags:

MVC using Servlets and JSPs
This example demonstrates Product registration and after registering display registered product. example has two links on home page.
MVC using Servlets and JSPs

Run It Now!
33
2276 reads
KingLord007's picture

Submitted by

KingLord007
Writing an Interface
The below example demonstrates how to Implement an Interface by Multiple Classes. The below example defines an Interface "Dutiable" which has two methods payDuty() and getDutyRate().
Run It Now!
30
2329 reads
eddie14's picture

Submitted by

eddie14
Implementing an Interface
The below example demonstrates how to implement an Interface in java. The below example implements an Interface named "FileFilter" which defines a method accept().
Run It Now!
87
3294 reads

November 4, 2011

Inheritance Example


The below example demonstrates how to inherit a base class to a derived class. The below example defines a base class named Employee which is extended by Class Manager.
24
3475 reads

November 4, 2011

Inheritance Example


The below example demonstrates how to extend a super class in java.
33
2389 reads
KingLord007's picture

Submitted by

KingLord007
Use Inhertitance In Java.
The below program demonstrates how to use Inhertitance in java. The below program defines a Super Class named Auto which is extended by two Derived Class named EuropeanAuto & JapaneseAuto.
Run It Now!
65
2025 reads
Using an Array List Collection
The below example demonstrates how to use ArrayList Collection in java. The below example creates an arraylist of objects of Class Game untill the user press n as input.
Run It Now!
69
2690 reads
Madman0101's picture

Submitted by

Madman0101
Tags:

Use Arrays In Java.
The below example demonstrates how to use arrays in java. The below example creates an array of objects of Class Game until the user press n as input.
Run It Now!
25
2163 reads
Adrian999's picture

Submitted by

Adrian999
Use Try-catch Blocks
The below example demonstrates how to use try-catch blocks to catch an exception. The below example encounters an Arithmetic Exception as it try's to divide 42 by 0.
Run It Now!
72
2351 reads
Handling Logic Errors in Java
The below example demonstrates how to display a logical error in the code (called a bug) The below program encounterts the bug on line 9, which actually should be: single_letter = check_word.substr
Run It Now!