How to learn Java Programming
Java is object oriented programming language which was developed in year 1995 by James Gosling and Sun Microsystem. You can find java on your laptops, mobiles, cars, Televisions etc. Java is among one of the widely used programming languages. One of the main advantages of java is that you write code once and it can be executed on any platform.
The code written for java can run anywhere. But how it is possible?
Java is platform independent language. It runs on JVM which stands for java virtual machine. We write java code on simple editor and save it as dot java file. On compiling, code gets converted to dot class file which is a byte code. That byte code runs on java virtual machine. So, a program which is written on Linux can be executed on Windows and Mac as well.
In a nutshell, java lets programmers to write code once and allows it to run anywhere using JVM.
How to start learning Java
Start with a basic Hello world program in Java. Learn to Compile and run it.
Then learn to create new classes using Java. You will know to create new variables and use them with methods.
After you create a new class it’s time to learn about Objects. We create objects out of class.
Learn about keywords and access specifiers in Java so that you can use objects and classes in much powerful way.
Get familiar with Strings in Java. Learn about StringBuilder and StringBuffer. Make sure you know String functions as well.
You should know basic OOPS concept. Try to implement programs for inheritance, polymorphism and encapsulation. Inheritance provides code reusability and prevents code duplicacy. Polymorphism is ability to exist in two or more form. With the help of Encapsulation you restrict access to some part of your code and combine methods and variables in on single unit called class.
Learn to create new classes by implementing Interfaces. You should also learn about abstract class before you start learning about interfaces. Interface and Abstract class covers abstraction which is the fourth main concept of OOPS. Make sure you learn about other OOPS concepts as well which are listed in step 4.
Then learn to create threads in Java. Thread is a smallest unit of process. Process is program in execution.
If you are done with Core-Java then you can start with Android development or Java EE.
Step By Step Java tutorials by KB4DEV
KB4DEV Java tutorials will help you to get started with Java programming language. KB4DEV has basic to advance level of java topics which are covered in detail. Idea behind KB4DEV is that anyone can register themselves on their website which is free. Registered users can edit the existing articles which makes the content unique and fresh forever.










