I am going to type my first article on Java, one of my favorite programming language. Java is so much popular now a days. Somebody loves it, somebody scares it, somebody don’t know what to learn, somebody hates it, somebody founds it complex. But statistics says java goes on and on. No ones thought, no ones feeling can stop it. So, Java must have something which makes it popular. But what it is? Simplicity…
Yes, Java is as simple as any other general purpose language. It’s Syntax is much clearer than other low level languages. It has automatic garbage collector. And most importantly it is pure Object Oriented. People who have know previous knowledge in programming may face some problem at the beginning. Although it is not impossible to start programming life with java. Who have some previous knowledge in any other language will get it very first. At least one thing they won’t have to learn if they come from C or C++ background is syntax. All three share the same syntax convention. Now I am going to describe some topics briefly which you have to learn to write code in java.
Syntax: Java syntax are very easy. If you are a novice programmer it will take a few days to capture all the available syntax. At the beginning you may scares to see long length code, but this long length code has clear explanation about what you are doing. Don’t scare just type it again and again. At first you just have to learn how to write code not the logic behind the code.
Using API: API is stand for Application Programming Interface. It’s a collection of predefined classes which will help you a lot with your project. In Java 8 there are 4280 classes available. You may use this class for different purpose. You just have to learn how to use this API. You can check out this Java API.
Collection Framework: This is one of the major part of java. It’s nothing but some common data structure which is predefined by java. It’s also a part of Java API. But all collection classes are called together Collection Framework. I will write several article on Collection Framework later. It made our job easier.
The basic part of java is finished here. After completing this three parts one can easily write some code and solve some problem with the help of java. From Now, I will describe some advance topics. Which are easy to learn but take years to be master.
Object Oriented Design Principal: Object Oriented Design or OOP is a technique not a feature of java. But java is a language where we can apply this technique properly. Now OOP knowledge is must needed and required by each and every company or project exist in this planet. I think everyone should spend much time on it, because at a first glance it may seems very easy. But when you want to apply it to your project you will not have an idea what to do and how to do.
Generics: Actually it’s real fun and not take too much time to be master. But you have to understand it’s use properly. Otherwise you will not benefited by it.
Data Structure Implementation: After achieving some knowledge about OOP and Generics you can strong your knowledge by implementing some data structure. We know data structure is all and every company seek a programmer who can implement all most all mostly used data structure from scratch. Implementing data structures with java has two major benefits. One will gain the knowledge of data structures and OOP at the same time.
Design Patterns: Design Patterns stands on OOP. In real project we need it a lot. Some programmers find there are pattern in our every software problems. They find the possibly best solution and named a pattern. There are lot of patterns. But very few of them are mostly used.
All I have discussed till now is the major topics which we have to cover if we want to write code in java appropriately. There are many other topics too which need to cover. Like, Multi Threading, JDBC, File Handling, Networking, Security, JSON Parser, XML Parser, AWT, SWING and lot more. But I think if anyone cover the previous topics all topics will become very easy. At first we have to understand the philosophy behind a language. Each and every language has it’s own philosophy. They are not same. It may be seem they are same, may be it’s syntax are closer but two programming language are never same.
I discussed, all about my thought, my knowledge and my experience. If any one have any contradiction, feel free to inform me. I apologize to everyone, my English is not so good. Thank you…