On Thu, Nov 24, 2011 at 8:54 AM, Aitor Mendaza Ormaza
<[email protected]> wrote:
> For what is worth, I don't choose not to believe Mr. Bloch, I was just
> wondering if in Android were better choices for classes as structs, as I
> know my knowledge of both Java and Android is limited.

Android doesn't add anything to the Java programming language. It adds
(and removes) from a standard Java class library, but the language is
the same. Hence, Android did not introduce any new language concepts
like a struct. The objective here is maximum compatibility with Java
5/6 code.

Advice for ordinary Java is *generally* a good starting point for
Android -- the places where Android will differ is not in language
features but in VM implementation (e.g., garbage collection). The
biggest exception to this rule will be anything written about Java 7,
as Android does not officially support it, and so you may encounter
problems with new Java 7 language features.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to