Congratulations if you know Java !!
If not I will recommend that you learn Java basics before learning App development using Android.
I will explain the reasons for the same but in short – you will be coding in Java to create Android Apps.
You might be aware that Android framework uses Java as the Programming language.
Chances are that you might be familiar with Java, at least heard about it.
Java is one of the most popular programming language available.
One of the primary reason for its popularity is its platform independence, thanks to the Java Virtual Machine which also makes it very secure.
It is based on Object Oriented Programming. Understanding OOP’s basics is important.
To code effectively for Android having a good understanding of Java basics is quite important. You will deal with Classes, Interfaces, Inner Classes, Lists, Threads and more.
Following Java concepts are used extensively in Android development so learning these will provide you a good foundation.
- Classes and objects – You should be able to create a Class.
- Inheritance, Encapsulation, Overriding and Overloading
- Interfaces and Abstract Classes
- Primitive Variables and Methods
- Equals, Hash Code and Serialization
- Collections API – How to use a List. You will be using ArrayList quite often.
- Threads – How threading works. Implementing Runnable interface.
- Date API
- String and StringBuilder
- Managing Exceptions – Try Catch and Finally
- Static variables and methods. Also learn the use of final modifier and how Enums work.
Knowing this will help you get started. Not to mention – practice writing Java programs. Use an editor so that you know where you are making mistakes.
Books and Tutorials
Here are a few useful resources to learn these concepts.
1. Head First Java
2. Official Documentation
- Code often. When you learn something try to code and test.
- Try using a text editor to code.
- Try to solve problems.
- Keep learning. Being a competent Java programmer will open many avenues for you, Android being one.
Knowing Java will make things easier for you and give you a strong foundation. So consider learning Java before starting with Android.
One thought on “Why Java ? Do I need to know Java before starting Android Development”
Awesomme blog you have here