I thought to give some fundamental information about the Java programming language due to which many new learners will get some help.
Introduction :
Java is programming language all its own characteristics to describe algorithms, ie its own foundations of language. This manual is not intended as an exhaustive description of all the ways that we can "express" in this language, but a base to be creating our small programs. I think it is much more useful as you begin to program these things are best learned when we have to solve a problem during our work. To enter simply point out that Java has a syntax similar to C + + so that programmers who come from this language will feel very comfortable in it.
Comments :
There are three types of comments in Java :
- // This is a one-line comment
- /* This is a comment on one or more lines */
- /** This is a documentation comment */
Identifiers :
An identifier is a "name" that allow us to target specifically to an entity's own language, ie, are the names we can bring them to our / as variables, methods, classes, interfaces and objects. The only restriction on the formation of IDs is that they start with letter, underscore or the '$' sign, then follow letters or numbers. Keep in mind that in Java as in many other programming languages are case-sensitive. A highly recommended set of rules for creating identifiers in Java: Java is common in type all lowercase identifiers taking into account the following exceptions :
- If we want to include an identifier in a compound name becomes the first full name in lowercase and the rest with the first letter capitalized and the rest in lowercase.
- The class and interface identifiers always begin capitalized following the previous rule in case of a compound name.
- The final variable names (the most frequently named "constants") are written entirely in capital letters.
Bookmarks