This post is for Java Beginners only; who are trying to learn Java and want to understand where to start with. Over here, I am trying to prepare a road-map for learning which should help. While learning Java, it is important that you stay focused on basics. Otherwise, you could find it a never ending subject.
Java Learning Road-map
Often people new to java keep asking the questions as – where to start with? What all topics I should cover that could be treated as basics? Also, how my learning should be structured to keep the interest and momentum on, etc. Java could turn into amazon in the absence of a proper plan. Here I am providing the sequence which I feel someone with little or no java knowledge should follow.
1) Java Basics
- JDK Installation
- OOPs concepts.
- All about Constructors– their need and use
- Class and Object
- How Java API has been structured. Use and importance of Object class.
- Concept of method overloading vs overriding
- Data types and their usage. Array, String, StringBuffer, StringBuilder etc.
- Mutable vs Immutable objects.
- Abstract Class and Interface. Their significance.
- Basic Exception Handling. Understand ‘try – catch – finally’.
- Jdk vs Jre (this step is optional though)
- Java Class Loaders and Process
- Java byte code and JIT compiler (this step is optional though).
- Executing a program from command window (this step is optional though)
- Write your first ‘Hello world’ program.
- Understand operators – && (AND), || (OR) and, ! (NOT)
- Control flow statements – Decision (if – else if – else, switch – case), Looping (for, while, do-while) and Branching (return, break, continue)
2) Advance Java
- Java way to achieve data structure – Collection API, Understanding List, Set, Map, Queue Interfaces. What is the need of class Collections?
- Awareness of terminology Serialization and what API help us achieve it.
- Basic concept of Java Threads.
- Basic of Request, Response and Servlet Overview and Life Cycle.
- Understand Java Database Connectivity. Understand interfaces statement, prepared statement, connection etc.
- Understand JSP and Life Cycle. Understand Implicit Objects, Directives and Actions etc.
My personal believe is – Books are the best starting point to study almost anything. Please refer to my article Top 5 Java Books which talks about some good books you can refer to as starting points. You can pick any one of them and it will definitely help you. In case you like online material then you can use the links provided in the road-map to navigate through the page.