Ben Chuanlong Du's Blog

It is never too late to learn.

Questions About Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. is possible to define abstract static method? i.e., the method doesn't depend on any instance variables but subclasses have different implementations

  2. for a void method, we can also make it …

Async Framework for JVM-based Languages

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

RxJava

RxJava is a reactive extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.

Date and Time in Java and Scala

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use Joda time if you are using JDK <= 7 and java.time if you are using JDK8 and above.

If you do prefer Scala libraries (when working in Scala), https://github …

Operators in Different Programming Languages

Python Bash C/C++ Java Julia
and and -a && && &&
or or -o || || ||
not not ! ! ! !
bit and & & & & &
bit or | | | | |
bit not ~ ~ ~ ~ ~
bit xor ^ ^ ^ ^ ^
vector and
vector or
vector not
equals == -eq == == ==
not equal != -ne != != !=
greater than > -gt > > >
less than < -lt < < <
greater than or equal to >= -ge >= >= >=
less than or equal to …

Visual Studio Code for Java Development

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Java Development in Visual Studio Code

https://code.visualstudio.com/docs/languages/java

https://www.youtube.com/watch?v=RJIfsSmU9zk

https://iseif.dev/2019/06/05/vscode-as-java-ide/

https://github.com/redhat-developer …

Comparison of Collections in C++ and Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Plain Old Array

  1. The length/size of array is as in the declaration. Each element of the array is initialized to the default value (null for object).

  2. Array in Java does …