Java Σημειώσεις Σεμιναρίου

download Java Σημειώσεις Σεμιναρίου

of 27

  • date post

    18-Feb-2016
  • Category

    Documents

  • view

    213
  • download

    0

Embed Size (px)

description

για ειδικότητες πληροφορικής από το ΙΕΚ Νίκαιας

Transcript of Java Σημειώσεις Σεμιναρίου

  • Java

  • Java 2

    .................................................................................................................................................... 2

    1 ..................................................................................................... 6

    1.1 ..................................................................................................................................................... 6

    1.2 .................................................................................................................................................... 6

    1.3 ................................................................................................................................................... 7

    1.4 SUN MICROSYSTEMS ........................................................................................... 7

    1.5 .............................................................................................................................................. 9

    1.6 JAVA ........................................................................................................................................ 10

    1.7 JAVA ............................................................................................................................ 10

    1.8 JAVA SE 6 ...................................................................................................................... 12

    1.9 ................................................................................................................................... 13

    1.10 INTEGRATED DEVELOPMENT ENVIRONMENTS (IDES) .......................................................................................... 15

    1.11 JAVA ............................................................................................................................. 17

    1.12 (COMMENTS)................................................................................................................................... 18

    1.13 (MAIN) ......................................................................................................................... 20

    1.14 JAVA .................................................................................................................... 22

    1.15 ...................................................................................................................... 22

    1.16 (ESCAPE SEQUENCES) .................................................................................................. 23

    1.17 (PACKAGES) .................................................................................................................................... 24

    1.18 (COMMON DIALOGS) ........................................................................................................... 27

    2 / ................................................................................................. 31

    2.1 (DATA TYPES) ................................................................................................................. 31

    2.2 (LITERALS).................................................................................................................... 33

    2.3 (VARIABLES) ............................................................................................................................ 35

    2.4 ............................................................................................................................ 37

    2.5 (REFERENCES) ............................................................................................................................. 38

    2.6 ....................................................................................................................... 38

    2.7 (CONSTANTS) ............................................................................................................................... 39

    2.8 (OPERATORS) ................................................................................................................................ 40

    2.9 (ARITHMETIC) ............................................................................................................ 40

    2.10 M A/M (INCREMENT/DECREMENT) ................................................................ 41

    2.11 (RELATIONAL) ................................................................................................................. 43

    2.12 BIT (BITWISE) ................................................................................................................. 44

    2.13 (COMPOUND ASSIGNMENT)..................................................................................... 45

    2.14 (LOGICAL) ......................................................................................................................... 46

    2.15 ........................................................................................................................... 48

    2.16 ............................................................................................................................... 48

    2.17 (TYPE CASTING) ............................................................................................................. 52

    2.18 (ARRAYS) ...................................................................................................................................... 53

    2.19 .............................................................................................................................. 57

    2.20 .............................................................................................................................. 58

  • Java 3

    3 ............................................................................................................................ 61

    3.1 ...................................................................................................................................................... 61

    3.2 IF..ELSE ...................................................................................................................... 61

    3.3 IF..ELSE IF ................................................................................................................ 66

    3.4 IF .................................................................................................................................... 67

    3.5 ................................................................................................................................... 70

    3.6 (TERNARY OPERATOR) ? : .......................................................................................... 71

    3.7 H SWITCH ........................................................................................................................... 73

    3.8 WHILE ......................................................................................................................................... 77

    3.9 DO..WHILE ................................................................................................................................. 79

    3.10 FOR ............................................................................................................................................. 81

    3.11 ............................................................................................................................. 86

    3.12 BREAK CONTINUE ................................................................................................................................... 86

    3.13 LABELED STATEMENTS .................................................................................................................................. 88

    4 ( ) ......................................................... 91

    4.1 ................................................................................................................................................... 91

    4.2 (OBJECT)................................................................................................................................ 92

    4.3 (CLASS) ........................................................................................................................................... 93

    4.4 ........................................................................................................................................... 96

    4.5 (MEMBER-VARIABLES)..................................................................................................... 96

    4.6 (VISIBILITY) ............................................................................................................................... 97

    4.7 ......................................................................................................................... 98

    4.8 (METHODS) ............................................................................................................................... 100

    4.9 (CALL BY VALUE) .............................................................................................................. 105

    4.10 (CALL BY REFERENCE) ................................................................................................ 107

    4.11 (METHOD OVERLOADING) ...................................................................................... 108

    4.12 (CONSTRUCTORS) .........................................................................................