Java Basics

Recent Articles

System.out.println

This Java tutorial is to explain what System.out.println is and how it works. It is love at first type. How many times have we used System.out.println till now? It is one of the most number of times compiled statement in the history of java. We shortly call it SOP. Along with Java’s System.out.println(), at the […]
Published to Core Java Tutorial on 29/04/2012.

Install Java in Linux (Ubuntu / Debian)

This manual is to help install java (jdk) in Ubuntu / Debian Linux. Previously we discussed about how java’s installation has evolved over a period, then I promised to write an article on installing java on Linux. Yes I love Linux! Before install you should be aware of couple of things. Which package I need […]
Published to Core Java Tutorial on 25/12/2011.

Java Array

Array is used to store same ‘type’ of data that can be logically grouped together. Array is a fundamental construct in any programming languages. This Java tutorial is planned to provide comprehensive information about Java arrays. Array is one among the many beautiful things in a programming language. Easy to iterate, easy to store and […]
Published to Core Java Tutorial on 31/01/2011.

Java Double Brace Initialization

Double brace initialization is a combination of two separate process in java. There are two { braces involved in it. If you see two consecutive curly braces { in java code, it is an usage of double brace initialization. First brace is creation of an anonymous inner class. Without considering the second brace if you […]
Published to Core Java Tutorial on 26/01/2011.

Java Primitive

As of the Java Virtual Machine Specification second edition, numeric types, the boolean type (§3.3.4), and the returnAddress type are the three java primitive types supported by JVM. Most of you may get annoyed, we all know about the primitives of java. That is where from we all started it. But, you may not be […]
Published to Core Java Tutorial on 25/11/2010.

Java Clone, Shallow Copy and Deep Copy

Clone (κλών) is a Greek word meaning “branch”, referring to the process whereby a new plant can be created from a twig. In biology it is about copying the DNAs. In real world, if you clone Marilyn Monroe, will you get a copy of her with same beauty and characteristics? No, you will not get! […]
Published to Core Java Tutorial on 28/09/2009.

Java null and NullPointerException

NullPointerException: An attempt was made to use a null reference in a case where an object reference was required. NullPointerException is more famous to Java programmers, than fashion to Paris. When you start breaking the beurette and Pipette in Java lab, first thing you will get is NullPointerException. In this tutorial lets discuss about, do […]
Published to Core Java Tutorial on 14/05/2009.

Java This

Definition for java this keyword: Java this keyword is used to refer the current instance of the method on which it is used. Following are the ways to use java this 1) To specifically denote that the instance variable is used instead of static or local variable.That is, private String javaFAQ; void methodName(String javaFAQ) { […]
Published to Core Java Tutorial on 29/08/2008.

Java Static Import

First lets understand what does “java import” does to your java program! Consider the java import statements: 1) import package.ClassA; 2) import package.*; Java statement (1) gives you a license to use ClassA inside the whole program without the package reference. That is you can use like ClassA obj = new ClassA(); or ClassA.getStatic(); Java […]
Published to Core Java Tutorial on 14/06/2008.

Java Variable

Java variables can be categorized into the following seven types: Class Variable Instance Variable Array Component Variable Method Parameter Variable Constructor Parameter Variable Exception Handler Parameter Variable Local Variable 1) Class Variable A java class variable is a field declared using the keyword static within a java class, or with or without the keyword static […]
Published to Core Java Tutorial on 02/06/2008.