Apr 07, 2011 — 0 comments
An inner class is a class declared inside another class. The enclosing class can be a top level class or another inner class. The reason for using inner classes is to properly implement composition when the life of inner class instances are controlled by the outer class instance.
Local inner classes are declared inside of a block of code. This block can be static bloc, a constructor, a method or simply a block of code surrounded with curly braces. These classes are only visible inside the enclosing block, but inside the block full hierarchies of classes can be developed.
A nested interface is just a regular interface defined inside another class or interface. They are actually defined inside the body of the parent class, not only in the same file.
A static nested class is a regular class defined inside of a package level class or inside of another static nested class. They are actually defined inside the body of the parent class, not only in the same file.
Learn to use Java's built in LinkedList class to easily and quickly create Linked Lists.
Learn how to build your first GUI program using Java. It uses Swing framework, but since its for the beginners, fits well in the Java Basics category.
If you have not read the methods and argument tutorial then please go read it now, click here. Otherwise, continue with this tutorial. I will show you the basics of using objects oriented programming using "real world" objects to help you along with way. We will be using two different files, save one file name "Beer.java" and the other "DrinkBeer", which will be our objects and main.
This tutorial will show you how to make stars for a background in your application using random numbers and loops. This will also give you the basics for using applets.
This tutorial will give you a nice understanding to using argument with methods in java. If you're new to OOP then this will help you out.
This introductory tutorial from Sun will provide an interview to programming in Java. It includes an overview of the language and environment, a simple "Hello World" lesson, and sample code for Windows, Linux, and OS X used in the creation of "Hello World".
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?