Currently browsing tag

Java Basics


Java Exceptions Tutorial

In this tutorial I am going to explain Java exceptions in details and how to use them in the real applications. One …


Downcasting In Java

Upcasting is assigning the sub class reference object to the parent class which is allowed in Java. Downcasting is assigning parent class …


Static Nested Class In Java

Static Nested classes are inner classes which are declared inside another class and also declared with static keyword. The main difference between …


Instance Initializer In Java

In my previous example I have explained how to use static initializer in Java.This example shows how to use the instance initializer …


Static Initializer In Java

This example shows how to use the static initializer in Java. The following are the few features of static blocks. Static initializers …


How To Get Classpath in Java

This example demonstrates how to get the classpath string using the Java program. It is simple that you just need to use …


How To Get OS In Java

This post writes a simple Java example program  to get the current operating system. There is a system property in Java, System.getProperty(“”) which …

Pin It on Pinterest