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

Why is the subject of the story about Java supp...

Koji Saiki
December 26, 2018

Why is the subject of the story about Java support JDK?

Koji Saiki

December 26, 2018
Tweet

More Decks by Koji Saiki

Other Decks in Programming

Transcript

  1. Java public class HelloWorld { public static void main(String[] args)

    { System.out.println("Hello World!"); } } • ͜ΜͳงғؾʹͳΔΑʹڱٛͷJava
  2. Java public class HelloWorld { public static void main(String[] args)

    { System.out.println("Hello World!"); } } • ͜ΜͳงғؾʹͳΔΑʹڱٛͷJava งғؾʁ
  3. Java List<Record> records = hoge.query(); for (Record str: records) {

    ... } • ۩ମతͳจ๏͸ʮJava SEʯͰܾ·Δ͔Β ͜ͷfor͸”Java SE 5” Ҏ্Ͱͳ͍ͱಈ࡞͠ͳ͍
  4. Java SE • ৽͍͠จ๏ (String value) -> { System.out.println("value: "

    + value); } @FunctionalInterface Consumer<String> consumer = new Consumer<String>() { public void accept(String t) { System.out.println("value: " + t); } }; ※ద౰ͳͷͰؒҧͬͯͨΒ͢Έ·ͤΜ
  5. Java SE • ৽͍͠จ๏ (String value) -> { System.out.println("value: "

    + value); } @FunctionalInterface Consumer<String> consumer = new Consumer<String>() { public void accept(String t) { System.out.println("value: " + t); } }; ※ద౰ͳͷͰؒҧͬͯͨΒ͢Έ·ͤΜ จ๏͸৽͍͠ΫϥεͳͲΛ׆༻ ͯ͠ղऍɾ࣮ߦ͞ΕΔ => Java SEʹґଘ͢Δ
  6. JDK • JavaSEͷ࢓༷Λ࣮ࡍʹ࣮૷ͨ͠΋ͷ public final class String implements java.io.Serializable, Comparable<String>,

    CharSequence { ... public String() { this.value = "".value; this.coder = "".coder; } ... https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/master/src/java.base/share/classes/java/lang/String.java
  7. JDK • JavaSEͷ࢓༷Λ࣮ࡍʹ࣮૷ͨ͠΋ͷ public final class String implements java.io.Serializable, Comparable<String>,

    CharSequence { ... public String() { this.value = "".value; this.coder = "".coder; } ... https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/master/src/java.base/share/classes/java/lang/String.java ͜͜ʹ੡඼Ձ஋͕͋Δʂ
  8. JDK • JavaSEͷ࢓༷Λ࣮ࡍʹ࣮૷ͨ͠΋ͷ public final class String implements java.io.Serializable, Comparable<String>,

    CharSequence { ... public String() { this.value = "".value; this.coder = "".coder; } ... https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/master/src/java.base/share/classes/java/lang/String.java ͜͜ʹ੡඼Ձ஋͕͋Δʂ
  9. JDK • ࢓༷ެ։ͱಉ࣌ʹྫͱͯ͠࡞੒͞ΕΔ࣮૷ɹ ʹࢀর࣮૷ • ࠷ۙͷJava SEͷࢀর࣮૷͸ʮOpenJDKʯ public final class

    String implements java.io.Serializable, Comparable<String>, CharSequence { ... public String() { this.value = "".value; this.coder = "".coder; } ... https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/master/src/java.base/share/classes/java/lang/String.java Φʔϓϯιʔε
  10. ͳΜͰJDKͰ࿩͢Δͷ • Javaɿ;͍Μ͖ • Java SEɿΦʔϓϯͳ࢓༷ॻ • JDKɿJava SEͷ࣮૷ •

    JRE(+JVM)ɿJDKͷ͏࣮ͪߦʹඞཁͳ෦෼ ݖརࠫଡ͕ൃੜ͢Δͷ ͸͜͜ʂ