This article is probably to be read together with the one on methods in Java OOP. There is a lot to say about classes, so I'm concentrating on topics which require extra attention when passing Java exams or certification and tricks they use to test your knowledge. Encapsulation Encapsulation is one of the core concepts... Continue Reading →
Methods – OOP | Preparing for Java Oracle Associate Certification (OCA) / Java basic technical tests
Certification and technical interviews will check if you know your OOP principles and can apply them. Even in level one Java Oracle certification, there are lots of questions to test if you know how to protect or give access to methods, members, classes... and extensive exercises on inheritance. Not the easiest topics. That's were you... Continue Reading →
Date and Time in Java 8+ | Preparing for Java Oracle Associate Certification (OCA) / Java basic technical tests
Since Java 8, the java.util.Date class is deprecated and new package java.time was introduced. Even though the old Date class is still usable and you can find it in legacy project, it's much advised to use the new package which corrected some lacks from old class. For certification and interview exam, you should of course... Continue Reading →
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 →
Array and ArrayList | Preparing for Java Oracle Associate Certification (OCA) / Java basic technical tests
Arrays are a very important structure in a programming language. In this article I'll talk about arrays ([ ]) and ArrayList as part of the Java Oracle Certified Associate (OCA) exam. Other collections are part of the topics for OCP exam so I'll cover them in my series of post about that exam. Make sure... Continue Reading →
String and StringBuilder | Preparing for Java Oracle Associate Certification (OCA) / Java basic technical tests
String and StringBuilder classes don't work the same at all. Here are the differences between them as well as tricks that you can encounter in certification or application tests. This topic is part of the OCA (Java Oracle Certified Associate). String String objects are immutable, although it might not be transparent. You can use a... 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 operators | Preparing for Java Oracle Associate Certification (OCA) / Java basic technical tests
This article is part of my blog series on how I prepared the OCA (Oracle Certified Associate in Java 8 aka 1Z0-808 exam), make sure to check to other articles if you're working on it too! These cover basic yet sometimes tricky knowledge about Java which can also help a lot for developer job interviews.... 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 →
Will the code even compile? | Preparing for Java Oracle Associate Certification (OCA) / Java basic technical tests
I've always been pretty fast at everything. Same goes for the exams I passed at school. When I was training for my Java Certification, my first certification ever (OCA Oracle Certified Associate Java SE 8 Programmer 1Z0-808), at ease, with no pressure, I was wrapping the test in way less time than allowed. However, I... Continue Reading →