This is my tech workbook. Please visit https://ojitha.blogspot.com.au for my official Tech blog.
PySpark Data Frame to Pie Chart
October 23, 2021
I am sharing a Jupyter notebook.
Jenkins in Docker Container
June 28, 2021
This is the source code to create a Jenkins Docker container.
Java Annotations
April 1, 2021
Annotations are metadata that provide information at the retention level of Java source, class or runtime.
Understand JPMS
March 27, 2021
Java Platform Module System (JPMS) has been introduced since Java 9. With Java 9, JDK has been divided into 90 modules. This is a simple example created using IntelliJ IDEA.
As shown in the above diagram, there are three modules, Application, Service and Provider.
Java Thread interrupt
March 23, 2021
It is important to understand how the Java thread interrupt work.
Source | Target | Action |
---|---|---|
New | Runnable | thread start() . |
Runnable | Blocked | synchronized lock on. |
Runnable | waiting | when object call Object.wait() . |
Runnable | timed-waiting | when Thread.sleep(...) . |
Runnable | Terminated | When thread finished. |