Java Introduction

Java Clear Concepts: Java Main Features and Characteristics

Java Main Features explained one-by-one in Simple words for a Beginner. Java was released to market in 1995 with its first version JDK 1.0. From day one, it is treated as an important language used to develop many applications that are increasing everyday; the latest being Android. As on today,…

Java this keyword Purpose and Meaning Example

Before explaining Java this keyword, first let us see the problem then we will see a solution. Sometimes in coding of any language including Java, local variable may clash with instance (global) variable. That is, both local variable and instance variable are same. If same, an unexpected result occur. Observe…

Java Data Types

Java Data Types Meaning Functionality explained. Every programming language comes with data types. As the name indicates, data type is required to store values (data) in a program. Depending on the nature of value to store, suitable data type should be chosen. For example to store a whole number like…

Java JDK Download Install

Let us see the procedure of downloading and installing Java software, JDK, step-by-step. To compile a Java program and to execute a Java program, the software required is JDK (Java Development Kit). It is developed by Sun Microsystems (now owned by Oracle) and the latest version is JDK 1.7. JDK…

What is Java?

What is Java ? is explained in Simple terms for a Beginner to get an idea of Java. Java, developed by Sun Microsystems and released to market in 1995, is a high-level programming language with many unparalleled features. It can be used to develop standalone applications, web applications (applets and…

Java new Keyword

In Java, objects are created with "new" keyword. " Java new" allocates memory to the newly created object at runtime. Observe the following on Java new Keyword, then we will go into details.

Output Screenshot on Java new Keyword Employee emp1 = new Employee(); By program wise it it simple…

Backslash Java

Backslash Java: Like C/C++, Java also comes with a group of characters treated as a single character and this single character also represents an ASCII value. These characters are known as escape sequences and precede (starts) with a backward slash \ like \n and \t etc. The name is so…

Data Types Default Values Java

Java does not support garbage values. An unassigned local variable gives compilation error and an instance (global) variable takes a default value. Following program illustrates the default values given by JVM for unassigned instance variables. String is not a data type. If not assigned, String takes null as the default.…

Strongly typed language

We call C/C++ and Java are strongly typed languages and JavaScript and PERL are loosely typed languages. What does it mean? Either in C or Java, when a variable is declared, it must be informed to the compiler what data type the variable stores like integer, float, double or string…

Java Primitive Data Types

A data type informs the compiler what type of data a variable is permitted to store. Data type declaration should be done when the variable is declared. It is required in Java as Java is a strongly typed language. The data type indicates what possible values that can be assigned…

Static Blocks Static Initialization

Generally, a Java programmer initializes variables in a constructor (or init() method in case of applet). It is the best place chosen, as the constructor is called implicitly when an object is created. Programmer creates objects before anything is done in coding (as object is required to call an instance…

Java Naming Conventions Readability

Java Naming Conventions Readability Summary: Unlike C/C++, Java comes with naming conventions to increase the readability of code. This "Java Naming Conventions Readability" explains how to do it. After knowing the rules of identifiers, it is the time to know the another grammar of Java known as "conventions". Conventions increase…

Java Features Buzz Words

Java is born with some unique and interesting features that made it most powerful and demanded language of the times. Following are the Java Features Buzz Words a) Platform-Independent "Java compiled file known as .class file can be executed on any OS without bothering on which platform (OS) the source…