Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fundamental Java

Fundamental Java

HASUNUMA Kenji

April 20, 2016
Tweet

More Decks by HASUNUMA Kenji

Other Decks in Programming

Transcript

  1.          

    ౰ॳ04ͷࠩҟΛ+BWB7.͕ٵऩ͢Δ ݱࡏ+BWB7.͕ଟݴޠͷڞ௨ج൫΁
  2.          

          JavaͷΤίγεςϜ
  3.        !  

           ! Ϋϥεͷܧঝ
  4.      $%&  '&( ( )&%%%

       $%*   $%*   $%* + + ϓϩηεͱεϨου
  5.          

    , "- # ./0 , 0  #- ./0      "  "   "  "   "  " -""1 +BWBͷೖग़ྗ 4USFBN ݱࡏͰ͸จࣈྻσʔλʹಛԽͨ͠3FBEFS8SJUFS΍ɺ ߴ଎*0Λ࣮ݱ͢Δ$IBOOFM΋Α͘࢖ΘΕ͍ͯΔ
  6. +BWBͷύοέʔδ         

                          
  7. java.lang.Object ͷϝιου equals ಉҰνΣοΫʹ࢖͏ ※ݪଇͱͯ͠ΦʔόʔϥΠυ͢Δ hashCode toString จࣈྻදݱΛฦ͢ ※༻్͸༷ʑ wait

    εϨου੍ޚ༻ϝιου ※௨ৗ͸Concurrency UtilitiesΛܦ༝ ͯ͠࢖༻͢Δ(ΦʔόʔϥΠυෆՄ) notify notifyAll clone ίϐʔ(࠷ۙ͸࢖ΘΕͳ͍) finalize ޙॲཧ(௨ৗ͸ΦʔόʔϥΠυ͠ͳ͍)
  8. Ωϟετ Object o = new ArrayList(); • objͷఆٛ͸Objectɺ࣮ମ͸ArrayList • ΞΫηε͸ఆٛΛ௨ͯ͡ߦ͏

    • ࣮ମ΁ͷ௚઀ΞΫηεˠΩϟετ ArrayList list = (ArrayList) o; w Ωϟετ=αϒΫϥεͷఆٛͰΞΫηε w Ωϟετޙ͸࣮ମʹ௚઀ΞΫηεՄೳ
  9. ͦͷଞͷॏཁͳτϐοΫ • Generics (J2SE 5.0) • Annotation (J2SE 5.0) •

    Project Coin (Java SE 7) • Collections Framework (J2SE 1.2) • New I/O (J2SE 1.4 & Java SE 7) • Concurrency Utilitites (J2SE 5.0 & Java SE 7)