views:

67

answers:

2

I have gone through with some of the sample examples of blackberry.

And in some classes I have found some variables are starting from _ like _address and some of them are ALLCAPS.

So, i guess it's bit different then the basic Java naming conventions.

So, can anybody let me know that is there any difference between Java and blackberry naming convention ?

Thanks in advance.

+2  A: 

I think it's just like any other company or person - everyone has their own coding style and you're just seeing the coding style of the RIM engineers who put together the sample apps. I don't know if RIM has a formal internal code style guide, but they haven't published or recommended one to developers.

I would say just stick with the conventions and code style you already use for regular Java apps.

Marc Novakowski
A: 

Here is a link to the Sun's Java Coding Conventions.

http://java.sun.com/docs/codeconv/

MIchael Grassman