Jump to content

Hi Guys.

 

I am completely new to coding and want to get started with android apps.

Can you help me out with choosing the right programming language.

Android apps run on Java but I also heard that you can code in C++, is that true?  If so, what are the advantages and disadvantages for both?

 

 

Link to comment
https://linustechtips.com/topic/657546-which-language-is-best-for-android-apps/
Share on other sites

Link to post
Share on other sites

android stupid uses java so i would say java though there are tools like xamarin which allows android and iOS to be coded in c#.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

You can program Android apps using the android SDK and Android Studio. If you want to you can use the Android NDK and C++ or Xamarin with C#. I'd recommend you to learn java, it's easy to learn, available on a lot of platforms and a solid choice for getting deeper into the topic of programming.

Link to post
Share on other sites

3 hours ago, Erik Sieghart said:

That's not true at all; they may be both object-oriented, but one is unmanaged and the other is managed. C# and Java are similar, but C++ and Java are not.

Java and C++ are most definitely similar. They have very similar syntax and use the same paradigm. They are both C style languages, learning one will help you learn the other. That you have to allocate memory is no where near enough to make them dissimilar languages.

Link to post
Share on other sites

4 hours ago, WaxyMaxy said:

Java and C++ are most definitely similar. They have very similar syntax and use the same paradigm. They are both C style languages, learning one will help you learn the other. That you have to allocate memory is no where near enough to make them dissimilar languages.

This may appear true, at least on the surface. But the farther you go into one of the two languages, the less they start to look similar. Also, they are not technically the same paradigm. Java is managed, as well as being very nearly pure object oriented, whereas C++ is an imperative language with object oriented support. Even if you only look at their similar paradigms, they are very different. To name just a few examples, C++ and Java's inheritance model is fundamentally different, as well as how they handle polymorphism. They differ in their abilities to use run-time reflection, and their functional programming paradigm support is completely different. Basically, C++ and Java are only similar if you only look at the basic syntax.

Link to post
Share on other sites

4 minutes ago, Pinguinsan said:

This may appear true, at least on the surface. But the farther you go into one of the two languages, the less they start to look similar. Also, they are not technically the same paradigm. Java is managed, as well as being very nearly pure object oriented, whereas C++ is an imperative language with object oriented support. Even if you only look at their similar paradigms, they are very different. To name just a few examples, C++ and Java's inheritance model is fundamentally different, as well as how they handle polymorphism. They differ in their abilities to use run-time reflection, and their functional programming paradigm support is completely different. Basically, C++ and Java are only similar if you only look at the basic syntax.

I know how they are different. I have written both.

 

what I am saying that in the spectrum of languages they are neighbors. go learn haskell or OCaml, fortran, assembly, python, c and compare them. the difference between Java and C++ is much smaller than the gap between paradigms or abstraction level.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×