Java 101

‘Java’ the object oriented programming language was developed by James Gosling of Sun Microsystems(now a part of Oracle) in 1995. It is a platform independent programming language meaning that once a Java program is written and compiled – the compiled program can run on any architecture(Apple, Windows etc)It is this feature that makes it flexible. It is also much easier to work with Java than other programming languages like C++.

Embedded systems, GUI programming, enterprise applications , mobile applications are all applications of Java. The core object oriented principles are inheritance, polymorphism and encapsulation. These concepts ensure the Java code is efficiently written and is re-usable. We will see a few concepts of core Java in this post. 

Classes, methods, variables, interfaces are all parts of a Java program.

Class:

To explain ‘Class’ in an understandable form , I always give the example of ‘man’. ‘Man’ is a class and each of us is an ‘instance’ of the ‘Man’ class.

Method:

In the ‘man’ Class – what he can do is a ‘method’. For example,

run()

walk()

talk() are all methods of the ‘man’ class.

‘Man’ can ‘walk’, ‘run’, ‘talk’ which are the methods of the ‘Man’ class.

Variables:

The describing features of ‘man’ class are the variables. For example, 

height

weight

color of hair

are all variables describing the ‘man’ class.

These are the very,very basic concepts behind writing a Java program. Incorporating these concepts into a program, you can write your very own ‘Hello’ world’ Java program. Of course, Java is an ocean and there are many more aspects to these very concepts. We will cover them in later posts….

Java can be downloaded from here...

This post is for alphabet ‘J’ for the  A to Z Blogchatter challenge… the previous post is here...

 

 

Jayanthi Manikandan has an undergraduate degree in Computer Science from India and a Master’s degree in Information systems with a specialization in Information security from Detroit, MI, USA.

She has been passionate about Information security and has several years of experience writing on various technical topics. Additionally, she loves to pen a few personal thoughts here as well! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *