RSS feed [root] /weblog /features /java




login:

password:

title search:




 


Wed May 31 14:32:21 GMT 2023

features


https://javaalmanac.io/ diff of difference version of Java

(google search) (amazon search)
second
download zip of files only

Thu May 04 12:27:29 GMT 2023 From /weblog/java/features

agent


http://www.takipioncode.com[..]1/07/double-agent-java-vs-native-agents/

List the pros of using native agent - http://apmblog.compuware.com[..]-for-application-performance-management/

Writing a Profiler in 240 Lines of Pure Java - https://mostlynerdless.de[..]ng-a-profiler-in-240-lines-of-pure-java/

(google search) (amazon search)


Fri Apr 21 23:07:50 GMT 2023 From /weblog/java/features

security


Introduction to Java Encryption/Decryption - https://dev.java/learn/security/intro/

Java Serialization Filtering: Prevent 0-day Security Vulnerabilities - https://foojay.io[..]g-prevent-0-day-security-vulnerabilities

Using JCE with OpenSSL - http://kasparov.skife.org[..]ive/src/java/jce-openssl-redux.writeback

---------- Forwarded message ----------
From: "cab"
To:
Date: 10 Mar 2005 23:33:16 +0800
Subject: Re: CRC-32

java.util.zip.CRC32 crc32 = new java.util.zip.CRC32();
crc32.update(byteArray);
long crcValue = crc32.getValue();

"Day Chan" 撰寫於郵件新聞:4230a15b$3@newsgroup.com.hk...
> Does anyone know how to calculate CRC-32 in Java?
> Thanks~

(google search) (amazon search)


Wed Mar 08 12:38:40 GMT 2023 From /weblog/java/features

optional


The Beauty of Java Optional and Either - https://dzone.com/articles/the-beauty-of-java-optional-and-either


(google search) (amazon search)


Fri Feb 17 11:55:07 GMT 2023 From /weblog/java/features

type


Autoboxing, Type can be changed - http://blog.jooq.org/2013/10/08/java-auto-unboxing-gotcha-beware/

Project Valhalla: A look inside Java’s epic refactor - https://www.infoworld.com[..]a-a-look-inside-javas-epic-refactor.html

(google search) (amazon search)


Wed Feb 08 13:19:36 GMT 2023 From /weblog/java/features

java19


Structured Concurrency and Loom - https://www.loicmathieu.fr[..]ss/en/informatique/java-19-quoi-de-neuf/

Using Pattern Matching - https://dev.java/learn/pattern-matching

(google search) (amazon search)


Sat Dec 10 12:45:08 GMT 2022 From /weblog/java/features

vector


FizzBuzz – SIMD Style! - https://www.morling.dev/blog/fizzbuzz-simd-style/

SIMD accelerated sorting in Java - how it works and why it was 3x faster - https://jbaker.io/2022/06/09/vectors-in-java/

(google search) (amazon search)


Wed Jul 06 13:31:29 GMT 2022 From /weblog/java/features

image


Strategies of loading image, select difference API to load image in difference case - http://java.sun.com[..]rticles/Media/imagestrategies/index.html

The Perils of Image.getScaledInstance() , with more detail explanation of image handling - http://today.java.net[..]3/perils-of-image-getscaledinstance.html

In Part I we talk about the building blocks of metadata in images and how it may matter to you as developer. - https://hillert.com/blog/read-write-image-metadata-java-part-1/

(google search) (amazon search)


Sat Feb 12 14:08:30 GMT 2022 From /weblog/java/features

java8


Introduction of Lambdas expression in Java - http://zeroturnaround.com/labs/java-8-the-first-taste-of-lambdas/ , an example show how lambdas help to clean up the duplication - http://www.nurkiewicz.com[..]mplifying-readwritelock-with-java-8.html

Another article about Java8 change, where Lambdas is the highlight - http://www.infoq.com/news/2013/08/everything-about-java-8 http://www.shaunabram.com/java8/

Nice tutorial - http://www.dreamsyssoft.com/java-8-lambda-tutorial/index.php

Huge list of articles - http://www.baeldung.com/java8

Use lambdas to replace for-loop - http://saltnlight5.blogspot.com.au[..]creating-your-own-loop-structure-in.html https://www.ibm.com/developerworks/library/j-java8idioms3

Overview for new Date/Time library - http://www.infoq.com/articles/java.time https://binkley.blogspot.com[..]/02/java-date-time-timezone-formats.html

http://www.javacodegeeks.com[..]om/2014/05/java-8-features-tutorial.html

Grouping and partitioning with stream - http://fahdshariff.blogspot.com[..]/11/java-8-streams-api-grouping-and.html
In a nutshell, make sure to never override a default method in another interface - http://mydailyjava.blogspot.com.au[..]va-8-default-methods-can-break-your.html

Convert SQL feature to stream - http://blog.jooq.org[..]and-their-equivalents-in-java-8-streams/

Simple overview of steam operation - https://www.javaprogramto.com[..]va-8-stream-intermediate-operations.html https://mydeveloperplanet.com/2020/09/23/java-streams-by-example

Behind the scenes: How do lambda expressions really work in Java? - https://blogs.oracle.com[..]o-lambda-expressions-really-work-in-java

Useful & Unknown Java Features - https://piotrminkowski.com[..]2022/01/05/useful-unknown-java-features/ https://www.infoq.cn/article/tWHfLK4Kxphu3JDhlds5


(google search) (amazon search)


Sun Jan 09 13:41:28 GMT 2022 From /weblog/java/features

IO


Watch service, watch if directory changed - http://www.javacodegeeks.com/2012/02/java-7-watchservice.html

Tips of using bytebuffer - http://worldmodscode.wordpress.com[..]2/14/the-java-bytebuffer-a-crash-course/

path : ..\.\Java.txt
absolute path : C:\Users\WINDOWS 8\workspace\Demo\..\.\Java.txt
canonical path : C:\Users\WINDOWS 8\workspace\Java.txt

Read more: http://javarevisited.blogspot.com[..]getcanonicalpath-java.html#ixzz3A8Zya6YG

Jump to a position of a file, inputstream.skip() is faster than reader.skip(), and reader.skip() is faster than randomAccessFile.

Java & Files: An Introduction - https://www.marcobehler.com/guides/java-files

Modern file input/output with Java: Going fast with NIO and NIO.2 - https://blogs.oracle.com[..]2-buffers-channels-async-future-callback

(google search) (amazon search)


Wed Dec 01 04:07:49 GMT 2021 From /weblog/java/features

java17


Writing a simple Filesystem using Fuse and java 17 - https://www.davidvlijmincx.com[..]imple_filesystem_using_fuse_and_java_17/

(google search) (amazon search)


Thu Sep 09 00:17:05 GMT 2021 From /weblog/java/features

java16


https://www.infoq.com/articles/java-16-new-features

(google search) (amazon search)


Sun Jun 20 12:53:30 GMT 2021 From /weblog/java/features

net


URL handler - http://skife.org[..]ibrary/2012/05/14/java_url_handlers.html , UrlSchemeRegistry.register("dinner", DinnerHandler.class);

Talking to Postgres Through Java 16 Unix-Domain Socket Channels - https://www.morling.dev[..]ugh-java-16-unix-domain-socket-channels/

(google search) (amazon search)


Fri Jun 18 00:28:23 GMT 2021 From /weblog/java/features

debugging


VisualVM , a collection of tools for debugging and monitoring - http://www.infoq.com/news/2008/05/visualvm

Presentation of BTrace, which allow user to have event base tracing - https://btrace.dev.java.net[..]ts/8510/98299/BTrace_BOF-5552_J12008.pdf

JDK command line tools which help to solving memory issue - http://plumbr.eu/blog/solving-outofmemoryerror-jdk-tools

Show how to get stack trace and memory map from JVM dump - http://fahdshariff.blogspot.gr[..]gr/2012/08/analysing-java-core-dump.html

VM options about dumps - https://inside.java/2021/04/30/failed-writing-core-dump/

(google search) (amazon search)


Sat Feb 20 13:10:54 GMT 2021 From /weblog/java/features

Graal


Java on Truffle — Going Fully Metacircular - https://medium.com[..]le-going-fully-metacircular-215531e3f840 https://www.infoq.cn/article/gTHX7fc0CLTtV9FCbGjO

(google search) (amazon search)


Thu Oct 08 00:22:27 GMT 2020 From /weblog/java/features

JNI


Invoking Assembly Language Programs using java native interface - http://today.java.net/lpt/a/330

Best practices for using the Java Native Interface - http://www.ibm.com/developerworks/java/library/j-jni/index.html

Other library try to simple using native library - https://inside.java/2020/10/06/jextract/

(google search) (amazon search)


Wed Oct 07 13:11:17 GMT 2020 From /weblog/java/features

java15


https://www.infoq.com/news/2020/09/java15-released

(google search) (amazon search)


Wed Aug 26 06:25:14 GMT 2020 From /weblog/java/features

reflection


Good : dynamic, generic
Bad: slow, don't work with Obfuscators and most searching and refactoring tools

http://jroller.com/page/ie?entry=time_to_reconsider_reflection

A very nice tool to get parameter name - https://github.com/paul-hammant/paranamer (e.g.: user of getUser(User user))

How to improve the performance - http://coding-masters.blogspot.com[..]-reflection-as-fast-as-direct-calls.html

The problem of using reflection to modify final field - http://www.azulsystems.com[..]7-writing-to-final-fields-via-reflection

Using reflection for using test - http://www.javaadvent.com[..]f-hacking-enums-and-modifying-final.html

Sharing about using invokedynamic - http://www.infoq.com/presentations/invokedynamic http://www.infoq.com[..]ticles/Invokedynamic-Javas-secret-weapon https://www.infoq.com/articles/Invokedynamic-Javas-secret-weapon

LamdbaMetafactory is pretty fast. (*) - https://www.optaplanner.org[..]8/01/09/JavaReflectionButMuchFaster.html

(google search) (amazon search)


Tue Jun 02 00:32:20 GMT 2020 From /weblog/java/features

java14


http://cr.openjdk.java.net[..]jlaskey/Strings/TextBlocksGuide_v10.html

https://ondro.inginea.eu[..]new-features-between-java-8-and-java-14/

JDK 14 Foreign-Memory Access API Overview - https://medium.com[..]-memory-access-api-overview-70951fe221c9

Pattern Matching for instanceof in Java 14 - https://blogs.oracle.com[..]ttern-matching-for-instanceof-in-java-14

(google search) (amazon search)


Tue Jun 02 00:30:26 GMT 2020 From /weblog/java/features

unsafe


The infamous sun.misc.Unsafe explained: object creation, native memory allocation, native concurrency - http://mydailyjava.blogspot.hk/2013/12/sunmiscunsafe.html

Features that help for writing low latency application - http://vanillajava.blogspot.com[..]1/sunmiscunsafe-and-off-heap-memory.html

Tips of using unsafe - http://vanillajava.blogspot.com.au[..].com.au/2014/06/making-unsafe-safer.html

An overview of it - http://www.infoq.com[..]A-Post-Apocalyptic-sun.misc.Unsafe-World https://blogs.oracle.com[..]ine/the-unsafe-class-unsafe-at-any-speed

(google search) (amazon search)



Thu May 18 02:28:15 GMT 2017 From /weblog/java/features

jdbc


5 things you didn't know about ... Java Database Connectivity - https://www.ibm.com/developerworks/library/j-5things10/index.html

(google search) (amazon search)


Tue Nov 29 03:43:01 GMT 2016 From /weblog/java/features

javadoc


We can link java source in javadoc page: http://blogs.sun.com[..]amere/Weblog/cool_javadoc_trick#comments

http://marxsoftware.blogspot.hk[..]/inheriting-javadoc-method-comments.html

(google search) (amazon search)


Mon Jan 06 08:30:32 GMT 2014 From /weblog/java/features

generics


As Java still need to support Collection.get(Object) , it is easy to get NPE if you use wrong type accidentally
http://jroller.com/page/sstirling?entry=map_get_object_and_java
I met this problem when using wicket, one cool feature of ListMultipleChoice is that if the list I press into the constructor is not List, it will persist the type information.
However, if you use this API carelessly and think the List return from the HTML form is always List . Then you will get strangle null pointer exception when you operate with the list instead of ClassCastException, as java will surpress the ClassCastException from ArrayList.get(i) sliencely and just return null to caller.

A related one but not really related to generics - http://www.pankaj-k.net/archives/2006/11/how_hard_is_tes.html , look like the behaviours difference of primittive and wrapper class at NULL is very easy to get hard to check bug

Another one, JDK generic try to cast to wrong class internally: http://jroller.com/page/dhall?entry=exploring_the_limits_of_java

Some cool feature, apply generic in comparable - http://tech.puredanger.com/2006/11/22/comparator-jdk5/

Wildcast in generic -http://javarevisited.blogspot.com[..]-is-bounded-and-unbounded-wildcards.html

http://javarevisited.blogspot.com.au[..]trized-class-method-Generic-example.html

http://mydailyjava.blogspot.com.au[..]6/advanced-java-generics-retreiving.html

(google search) (amazon search)


Tue Dec 10 03:58:22 GMT 2013 From /weblog/java/features

i18n


Java: Moving conditions into Message files - http://www.mscharhag.com[..]the-java-classes-resourcebundle-and.html

(google search) (amazon search)


Tue Jan 01 02:18:52 GMT 2013 From /weblog/java/features

image analysis


Using OpenCV to detect palm - http://www.javaadvent.com[..]d-and-finger-detection-using-javacv.html

(google search) (amazon search)