Wrapper classes | Preparing for Java Oracle Associate Certification (OCA) / Java basic technical tests

Wrapper classes are reference types that allow to manipulate primitives as so. They are thus nullable, and are necessary to store primitive data in collections. Here's a short overview about specific behaviors of the wrapper classes, including (un)boxing capabilities. Wrapper classes They're part of the java.lang package, thus need no import to be used. They... Continue Reading →

Statements, loops and conditions | Preparing for Java Oracle Associate Certification (OCA) / Java basic technical tests

Loops and conditions are the core behaviors of programming languages. We'll have a look at the particularities of them in Java and the tricks that you could encounter at tests or exams. Switch statement switch/case statement supports the following types: intbyteshortcharStringEnum(wrappers only in the Switch) and thus doesn't support boolean (that would be a plain... Continue Reading →

Java basics – the Java environment, object references and primitives, class structure, garbage collector | Preparing for Java Oracle Associate Certification (OCA) / Java basic technical tests

What are JVM, JRE and JDK? What's the basic structure of a Java class? What are the characteristics of primitive and reference types? What's the garbage collector and how does it work? This post goes through some basics of Java, even though not directly related. I believe they compose the first chapter of the reference... Continue Reading →

Start a Blog at WordPress.com.

Up ↑