Posts

Showing posts with the label Java

OOPs.. Is Java a pure Object Oriented Language?

Object Oriented Programming Object Oriented Programming or OOPs is a programming model which is based on the Objects.  We probably have to talk about the Class before we talk about an Object.  In simple, A class can be considered as a blueprint or template which defines attributes (or variables), members and/or functions containing the behavior of the class. A class doesn't hold or contain any data as is, an instance of the class is to be created to hold and/or process the data.  An Object is an instance of the class, which by default contains the instance of the variables and/or members defined as part of the class.  Any number of objects can be created from a class and each object occupies separate storage and contains different data.  E.g.: Class is like a blueprint of a house. Object is a house constructed physically based on the blueprint. Any numbers of houses can be constructed with the same blueprint.   Is Java a pure Object Oriented Language?...

Java Terminology

Java Terminology Below are some key java terms which helps to understand how java works. Java Virtual Machine (JVM) Bytecode Java Development Kit (JDK) Java Runtime Environment (JRE) Java Virtual Machine (JVM) JVM is a program designed to run Java programs across different platforms. There are different versions of JVM for different operating systems (Windows, Mac and Linux). JVM allows running Java programs on any operating system. This makes Java platform independent language. This is one of the primary function of JVM.  Another important function is Memory management. JVM manages memory through a process called Garbage collection, which continuously identifies and eliminates unused memory in Java programs. Garbage collection happens inside a running JVM.  Bytecode Java compiler compiles the Java programs into bytecode. Bytecode then can be executed by using JVM. Bytecode is saved in a .class file.  Java Development Kit (JDK) Java development kit provides the tools requ...

Introduction to Java Programming

Java JAVA is one of the most popular languages and widely used. Let's start the journey of learning Java programming with a bit of introduction about Java.  History of Java Uses of Java Features of Java History of Java First public version of Java (1.0) was released in 1996 by Sun Microsystems. History of Java goes beyond 1996. James Gosling, Mike Sheridan and Patrick Naughton initiated the Java language project in June 1991. It was initially called as Oak  then renamed to Green and finally Java (derived from Java coffee, A type of coffee in Indonesia). Java was designed with C/C++ like syntax so this can be found familiar by the developers.  On November 13, 2006 Sun released much of it's Java Virtual Machine (JVM) as free and open source software. This process was finished on May 8, 2007.  Below were the five primary goals behind the creation of Java.  It must be Simple, Object oriented and familiar.  It must be Robust and Secure.  It must be architec...