Friday, 2 August 2013

Introduction to Java for Beginnners

Introduction to Java for Beginners

Brief History
Java was developed by James Gosling and his team from Sun Microsystems in 1991. It was originally called Oak at that time and was renamed later to java. Java 1.0 was released in 1995 for public implementation for the first time. In the same year, Netscape Incorporated released its latest version of Netscape browser which was capable of running Java programs.

Features of Java
  • Java is Object Oriented Programming (OOP) language, i.e. Java is centered on creating and manipulating objects, and making them work together. This allows you to create modular programs and reusable code.
  • Java takes pride in being a platform independent programming language. Java compilers generate a byte code upon compilation of a java source code.This byte code can be distributed and interpreted on any machine by JVM (Java Virtual Machine) irrespective of its platform.
  • With multi-threading present in Java, it is possible to write programs that can carry out multiple tasks simultaneously. It allows developers to construct smoothly running interactive applications.
  • Java was one of first languages to make security a part of its design.
  • Java puts a lot of emphasis on early checking for possible errors and eliminate them to avoid errors during run time.
  • Java is designed for easy implementation of programming for the distributed environment of the internet.

Advantages of Java
  • Simplicity
  • Platform Independence
  • Security
  • Reliability
  • Object Oriented Programming
  • Multi-Threading

Disadvantage of Java
  • to maintain backward compatibility, some newer features like generics are implemented badly; you notice that this language gets old; other features that newer languages like C# have are missing at all
  • a lot of boilerplate code
  • reverse engineering is very easy, because Java is compiled to an intermediate language (which can also be an advantage, depending on what you want to do though)

Usage of Java
Java is used to develop a variety of applications we see in daily life ranging from web applications to mobile applications. You can find usage of Java in world wide web, laptops, mobile phones, netbooks, tablets, and many other electronic appliances too.

Standard Java Platform and IDE to use
If you do not have Standard Java Platform in your machine, you can download it from here.
After installing the JDK in your machine, all you need is an IDE for java. I personally prefer using Eclipse for this purpose. Netbeans isn't a bad choice either. You can download Eclipse here.
Please note that you must have the Java Environment in your machine before you install the IDE.
If you do not wish to use any IDE, you could write your programs in any text editor (e.g. Notepad) and compile it via command prompt too.

Extra Useful Links
Java Tutorials
Java API Specifications

E-Book for starter
Beginning Programming with Java for Dummies


Tuesday, 30 July 2013

How to be friends with Introverts?

Ever wondered why that person always stands quiet and alone in one corner while the rest of them party? Why doesn't s/he like to enjoy life like the normal folks?


Nothing is wrong with them. Such people represent that small section (20-25%) of our society who are known as introverts.

Their are many myths about such people in our society. For those who think that such people are shy, antisocial, arrogant, rude or dumb, its is not so.

So what are they?

They are just normal people who have their own world within their minds which they find more pleasing than the outer world.
Those who think they don't like talking, try talking to them about something that interests them. You'll be surprised to see how much talkative they can be.
If you think these people are not amiable, look a bit closely into their life. They have a few friends whom they consider to be priceless.
They dislike big groups and prefer to stay alone. This refreshes them and gives time to think or daydream or whatever you prefer to call it. This time is vital for them since they live in their inner world during these moment.
It is not that they don't like to go out and enjoy. The fact is they don't like staying out for a long time. They'd prefer to go out, complete their task and return as soon as possible. Enjoyment for them is the time they spend in solitude thinking deeply about what interests them.

So how do we befriend them? They don't like speaking at all!!
Take time to get close to them. Don't try to force them to speak. Try to communicate with them non-verbally (sending sms, chatting online, etc.), or talk with them when you are alone. This kind of communication makes them feel more comfortable since they get better time to think while the conversation goes on. Try to know what they are interested in. Try talking on that topic instead to the usual small talk. Gradually this person you want to be friends with will get closer to you. You may feel uncomfortable because of their silence in the beginning. But when you befriend him/her finally, you'll have gained an ally for a lifetime (since these people value the people in their small circle of friends much more than the extroverts).

I hope you enjoyed reading the above article.
Thankyou.

Sunday, 28 July 2013

Scripting Language vs. Programming Language

Scripting languages are languages that allow you to send commands directly to a system that executes these commands. These commands are read line by line and executed. An error is issued when a line cannot be executed for any reason (wrong syntax, illegal operation,...). e.g. Python, shell-script, Matlab

Programming languages are languages that allow you to create a program by writing structured code that is read all at once by the system, checked for errors, and translated into an unreadable format that the machine can then execute. e.g. Java, C/C++, Visual Basic...

Programming languages are generally faster in execution than scripting languages but are often more difficult to use and have more rigid syntax. You can generally use either of them to do pretty much anything, though each is more suited for specific applications.