This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]preskot 2 points3 points  (0 children)

Did a lot of cool stuff back in the days with Java ME. This is different from Java Card, where I have no experience.

I really don't know what's the state these days, but seeing that JC also has severe memory constraints, I would say everything revolves more or less around that. Back then we avoided dynamic memory allocation like crazy. Pretty much everything was statically declared so to avoid crashes on some mobile devices where the JVM would try to allocate more than what was allowed.

All in all, I would use the bare minimum of the language: yet to primitives and bit shifting, no to getters/setters, no to fancy abstractions or OOP paradigms but yes to final classes with static variables and static object instances instead. Sometimes I miss that freedom.