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 Networking

Java Networking is the mechanism of sharing data among one of or more computing devices by creating networks. In order to share resources or data among multiple computing devices, Java Socket programming is used. The J2SE APIs provides java.net package. This package has all the classes and interfaces needed to create connections through low level … Read more

Java Sending Email

Java programming language allows its users to send emails using the program. This process is called Java Sending Email. Java provides  JavaMail API to facilitate email sending process. There are various methods to send emails in Java. Most programming languages like python, provide tools to send emails. The prerequisites needed for sending emails in java … 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.