Java Loops

Java Loops are the keywords that are used to repeat lines of code multiple times. With Java loops same piece of code can be repeated multiple times without writing the same lines of code again and again. In programming, quite often there comes a situation when a programmer needs to repeat a piece of code … Read more

Java Polymorphism

Poly means many and morph means form. Polymorphism means the phenomenon of having many forms. Java Polymorphism refers to the phenomenon where many classes are related to each other through inheritance. Polymorphism occurs when different implementations of a function with same name exists in different classes. The function invoked depends on the type of object calling … Read more

Java Inner Class

Java allows nested classes so that programmer can write a class within a class. Other than methods and variables as class members, a class can also contain classes as its members. Nested Classes The class inside another class is a Java Inner Class. Inner classes can have private and protected access types, unlike regular classes. … Read more

Java File Handling

Java programming language provides functionality to handle files through code. Other than printing the results on the command line, programmer can also save results or read data from files. This is called File Handling. For this purpose, Java programming language has java.io package. The File class in java.io package helps user to handle files. Java File … Read more

Java Packages

Java Package is a group of related types (classes, interfaces, enumerations, annotations and sub packages). Programmer can either create his/her own package or use the pre defined packages provided in JDE. Subpackage A package can have multiple packages inside it. A subpackage is the package inside a package. To further categorize a package, we use … Read more

Java Exceptions

Java Exception handling refers to three keywords: try, catch and throw. While programming in Java, there often comes scenarios when command prompt shows error. Errors occur when there is some problem in the code and it cannot be compiled. There can be different reasons for errors, such as: Syntax error JVM ran out of memory File cannot … Read more

Java AWT

Java AWT stands for Abstract Window Toolkit. It is Java API that is used to create Graphical User Interface GUI in platform independent environment. Java AWT is used to create window based applications in Java language. Java AWT components are platform-dependent that means the components are displayed according to the view of OS. AWT is … Read more

Java Input and Output

Java Input and output are user interactions. Java Programming language allows to take input from user and display output.

Java Method

Java Method is a piece of code that performs function assigned to it. It runs only when it is called. Method is a part of java class. It is also called as function. Methods provide code reusability. There are two types of java methods: User defined Methods Standard Library Methods User Defined Java Method A … Read more

Java Generics

Java Generics is the method or class that can be used to on the parameter of different types like int. char, string etc. They are called parameterized types. For example there can be a sort generic that sorts an array of integers, characters and strings depending on the input. Hence Generics provide the feature of … Read more