Thursday 13 November 2014


Java is a general-purpose, class-based, and object-oriented language patterned after C and C++ to make it easier for existing C/C++ developers to migrate to this language. Not surprisingly, Java borrows elements from these languages. The following list identifies some of these elements:
• Java supports the same single-line and multiline comment styles as found in
   C/C++ for documenting source code.
• Java provides the if, switch, while, for, and other reserved words as found in the
   C and C++ languages. Java also provides the try, catch, class, private, and other
   reserved words that are found in C++ but not in C.
• As with C and C++, Java supports character, integer, and other primitive types.
   Furthermore, Java shares the same reserved words for naming these types; for
   example, char (for character) and int (for integer).

Download

0 comments:

Post a Comment