Budi Kurniawan

OCA Java SE 8 Programmer Study Guide (Exam 1Z0–808)

Notify me when the book’s added
To read this book, upload an EPUB or FB2 file to Bookmate. How do I upload a book?
  • 08106has quoted7 years ago
    The program examples accompanying this book can be downloaded from the publisher’s website:
    http://books.brainysoftware.com
    Extract the zip file to a working directory and you are good to go.
  • DARhas quoted8 years ago
    An integer literal without a suffix L or l is regarded as an int. Therefore, the following will generate a compile error because 9876543210 is larger than the capacity for an int:
    long a = 9876543210;
    To rectify the problem, add an L or l at the end of the number like this:
    long a = 9876543210L;
  • DARhas quoted8 years ago
    Literals
    From time to time you need to assign values to variables in your program, such as number 2 to an int or the character ‘c’ to a char. For this, you need to write the value representation in a format that the Java compiler understands. This source code representation of a value is called literal. There are three types of literals: literals of primitive types, string literals, and the null literal.
fb2epub
Drag & drop your files (not more than 5 at once)