Category: Java

Java AWT

The main classes of the java awt package are: BorderLayout Button Canvas Checkbox CheckboxGroup CheckboxMenuItem Choice Color Component Container Dialog Dimension FileDialog FlowLayout Font Frame Graphics GridBagLayout GridLayout Image ImageCapabilities Label List Menu MenuBar MenuComponent MenuItem Panel Point PopupMenu Scrollbar ScrollPane...

Java I/O Streams

Java I/O Streams Java I/O Streams are used for reading or writing information that are on an external source. Java I/O Streams allow communication between two or more threads. In Java there are two types of streams: Byte Streams Character Streams...

Java Exceptions

Java Exceptions Exceptions in Java represent errors that occur during execution of a program. Exception handling is used to avoid undesirable display errors, but also easier to correct any errors. To handle exceptions occurred during runtime uses: The try-catch-finally Exception thrown...

Java Packages

Java Packages A package is a collection of classes and related interfaces. Java packages are used to facilitate finding and using classes to avoid name conflicts and to control access to classes. To use a class or call a method of...

Java Interface

Java Interface A Java interface is a collection of abstract methods and constant declarations. A Java class can implement one or more interfaces. An interface can extend another interface using new methods abstract. To define a java interface uses keyword interface....