en
Budi Kurniawan

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

Повідомити про появу
Щоб читати цю книжку, завантажте файл EPUB або FB2 на Букмейт. Як завантажити книжку?
  • 08106цитує6 років тому
    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.
  • DARцитує8 років тому
    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;
  • DARцитує8 років тому
    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
Перетягніть файли сюди, не більш ніж 5 за один раз