http://www.bitsnbites.eu/benchmarking-os-primitives/
Project ZGC "The Z Garbage Collector" Early-Access Builds
http://jdk.java.net/zgc/
#interfacesmieci
źródło: comment_uC6IjKQLFPeeek0bPRLBWEDsaxBZT9xH.jpg
PobierzAutor
Wszystkie
Archiwum
źródło: comment_uC6IjKQLFPeeek0bPRLBWEDsaxBZT9xH.jpg
Pobierzpublic class BlaBla { static BigDecimal first = BigDecimal.ONE; static BigDecimal second = new BigDecimal("1.0"); static BigDecimal third = new BigDecimal("1.00"); static BigDecimal fourth = BigDecimal.TEN.divide(BigDecimal.TEN); static BigDecimal fifth = BigDecimal.TEN.divide(new BigDecimal("10.0000000000000000000")); public static void main(String ... strgs) { Set treeSet = new TreeSet<>(); treeSet.add(first); treeSet.add(second); treeSet.add(third); treeSet.add(fourth); treeSet.add(fifth); Set hashSet = new HashSet<>(); hashSet.add(first); hashSet.add(second); hashSet.add(third); hashSet.add(fourth); hashSet.add(fifth); System.out.println(treeSet.size() + ":" + hashSet.size()); }}a.compareTo(b) == 0 a.equals(b) niekoniecznie jest true
źródło: comment_Lc0SvX81HX4P13eH3NncIVyZoqQiVXsH.jpg
Pobierz
źródło: comment_MJv6rIJJy62kkCoGMcMzCj0h12Rtmp6N.jpg
Pobierz
źródło: comment_SCGRrGh5b2w6qq3trNHLskRWw6xRdLg5.jpg
Pobierz
źródło: comment_S3f6BeDSudi5c1ORvLWZaf8ZMtQPUxpB.jpg
Pobierz
źródło: comment_vSb8BUb0Hd9e6hel7WZ4RHOIEeTcThCQ.jpg
Pobierz
źródło: comment_ligUbllPeq0IXYOp0pLtmVZiPSj7Ahcr.jpg
Pobierz
źródło: comment_NdKPEdx4jihaCsQaMgId1spmCN9Rx8lL.jpg
Pobierz
źródło: comment_vCkj9rLWvPwIMO837ujku9jeF2CMX8GJ.jpg
Pobierz1.int[] tablica1 = new int[]{1, 2, 3, 4, 5, 6, 7};2.int[] tablica2 = {1, 2, 3, 4, 6};3.int[] tablica3;tablica3 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
źródło: comment_j6acDoMdYc3ndKyZwjhsf2lxqie4kMmI.jpg
Pobierz
final Integer a = 100;final Integer b = 100;Integer c = 200;Integer d = 200;final boolean ab = (a == b);final boolean cd = (c == d);System.out.println(ab + ", " + cd);
źródło: comment_vseAfsydjbmwF5GqhxNT7P2kTKHLZDgj.jpg
Pobierzclass Outer { class Inner {}}class ChildOfInner extends Outer.Inner { ChildOfInner(Outer x) { x.super(); }}class Outer {
class Inner {}
}
źródło: comment_bP0DHTkwxKm9JjOmRncwGVMAckievZTz.jpg
PobierzWykop.pl
https://developers.redhat.com/blog/2018/03/21/compiler-and-linker-flags-gcc/
First Contact With ‘var’ In Java 10
https://blog.codefx.org/java/java-10-var-type-inference/
#interfacesmieci
źródło: comment_51rvaFvnMZh56Cy1GDlLzdWJB6Qr6f5P.jpg
PobierzMi sie wydaje ze to dziala na wszystkich kompilatorach bo jest to oficjalne api - https://docs.oracle.com/javase/8/docs/api/javax/annotation/processing/Processor.html
no
No chodzi o runtime kompilacji, przecież cały czas piszę o API kompilatora :P
No i niestety pomijasz ważną rzecz: te api pozwala tylko wygenerować nowe klasy itd - ale nie możesz edytować AST obecnej klasy tak że dodajesz sobie getter i możesz go bezpośrednio używać z tej samej klasy. Jak dodasz metodę do istniejącej klasy to nie możesz jej użyć w tej