Developing secure applications – Java advanced (OCP)

This post covers Java security related topics as presented at Oracle University Online (Java SE 11 training), as required for Java Oracle Certified Professional exam. Security threats Denial Of Service (DOS) attacks: unchecked/unrestricted resources utilization.Sensitive data leaks: lack of encryption or information reduction.Code corruption: lack of encapsulation and immutability.Code injections: lack of input value validation... Continue Reading →

Annotations – Java advanced (OCP)

Java provides built-in ready-to-use annotations as well as the possibility to create one's own annotations. Annotations allow to add metadata which expresses explicit context and/or intent to various Java structures (target) as classes, methods, attributes... Annotations do not impact the behavior of their target. They are interpreted by dev tools, the environment, or the reader.... Continue Reading →

Concurrency and Multithreading – Java advanced (OCP)

Every Java program running has at least one thread, "main", automatically created by the JVM. Each thread is represented by an object of type java.lang.Thread. Thread.currentThread(); // returns currently running thread On parallelism and concurrency Before starting, I'd like to share this definition of concurrency and parallelism I found on the Oracle blog: The confusion... Continue Reading →

JDBC : Java DataBase Connectivity – Java advanced (OCP)

JDBC is a database neutral Java API in the java.sql package that allows connectivity and operations on databases. JDBC drivers provide database specific implementations of the API (for MySql, PostgreSQL, DB2… as examples). Driver libraries are made available to the application class loader via class or module path. Connecting to the database The database driver... Continue Reading →

Modularity – Java advanced (OCP)

Possibility to organize a projects in modules appeared in Java 9. In this post, we'll have a look at differences between non-modular ("legacy") projects and modular projects in Java, see how modules are created and how modular applications are run, and highlight gotcha's for those taking a certification exam covering Java modules. A Java module... Continue Reading →

Start a Blog at WordPress.com.

Up ↑