Coding
1Z0-808
ATG
Apache Fop
Elasticsearch
GWT
Groovy
JPA
Java
JavaScript
Jetty
Kibana
OCA
PDF
collections
concurrency
dates
dig deeper
exceptions
games
interview questions
logging
patterns
task
Solving the issue with debugging GWT in Idea: Error scanning entry: module-info.class
Recently I had to debug a GWT application in Intellij Idea using the GWT plugin, but it seemed to be broken. I was getting the following issue when the app was starting: Sooner or later I googled that the issue is in Jetty 9.2 which is used by the plugin to start applications. It was fixed in Jetty 9.4, so the…

2021-07-16
Generating PDF with Apache FOP and Maven. An example and some tricks.
This January (and, actually, February) I worked on generating PDF files. During the investigation process, we've chosen Apache FOP as a free powerful tool for this task. Firstly I wanted to write a step by step guide on how to generate a PDF file from a Java object. But eventually, I decided to keep it short, as the…

2019-02-13
Possible class names in Java
showPostImage(-353751602)
Uncaught exception: the image was stolen by a UFO
What would be the result of execution of the following code? If your answer is "Hello", then you're right! You can use any characters from the Unicode charset, in any case, to name classes (as well as variables and methods), except some preserved words like "null", "volatile", "public", etc. However, it's strongly…

2019-01-15
Switch case and default
showPostImage(-1561152684)
Uncaught exception: the image was stolen by a UFO
This snippet will compile and run without issues. It might be dubious whether it's okay to put the "default" block at the first place, but you can place it anywhere. In this case, the result would be: However there is a good practice to put the "default" block at the end of the switch statement. Or avoid using switch…

2019-01-13
Variables and fields instantiation
showPostImage(-1205404296)
Uncaught exception: the image was stolen by a UFO
This code won't compile because of line 4: When we declare a local variable, it must be initialized before use. Class fields don't have to be initialized. In case we didn't specify any value, a default value will be used. The following list represents default field values:

2019-01-11
1Z0-808 Preparation notes
The process of studying Java Core. The picture was taken from Unsplash.com. During the preparation time, I was making notes to remember little tricks that I didn't know or forgot. Although I would never recommend using some of the pieces of code from the notes in production, they might be helpful for those who are…

2019-01-09
Passed the Oracle 1Z0-808 certification
Good news, everyone! Even though this is the first blog in 2018, I'm still alive and I'm happy to say that I have passed the Oracle Certified Associate exam with 94% of correct answers (I still can't believe it 😱). It took about a month to prepare and I was spending all my free the time after work to read a book and…

2018-12-30