Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I learn Java before learning Android [closed]

Tags:

java

android

Should I learn Java before learning Android or I can do both things in parallel? What is the best approach?

like image 312
Eugene Avatar asked Aug 16 '10 18:08

Eugene


People also ask

Do I need to learn Java before Android?

Android App Development skillset will open many doors for you, however, before you start to program applications for Android, you will need to learn Java programming language!


2 Answers

I would absolutely learn Java first. Don't bother learning things like servlets, Swing etc - but learn:

  • The core language
  • Collections
  • IO
  • String handling

Trying to learn these while also learning a completely new environment will make it a lot harder to work out where you're going wrong.

Note that this isn't specific to Android - I'd always encourage developers to learn the "core" of a new platform before learning "peripheral" technologies such as native UIs or web frameworks.

I've seen people try to do this before - literally asking complicated questions about advanced scenarios, while not understanding the basics of the language. Sometimes the problem they've been having has been due to the complex API they were using, and sometimes it's been due to the basic misunderstandings - but the problems looks exactly the same to them. They can't tell the difference between not understanding how method arguments are passed, and having difficulty with cross-threading UI operations. As far as they're concerned, "something has gone wrong." Every step is painful when you don't have a solid foundation.

Aside from anything, as boring as console applications with no interaction might be, they're really great for just testing something quickly. You typically don't need to worry about threading, permissions, graphics, resources etc. Another good way to test your understand is via unit tests. Rather than a normal test-first approach, write a method and predict its output with unit tests, until you run out of interesting situations to test. Once you're done, you've got a complete record of what the code does - keep it for later on, in case you need to revisit the concept you were testing.

like image 106
Jon Skeet Avatar answered Oct 05 '22 02:10

Jon Skeet


Learning is always easier when you have a goals to work towards. If your goal is to do primarily Android programming, focus on that and you'll pick up Java on the way.

like image 29
Robert Avatar answered Oct 05 '22 03:10

Robert