Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

and many more ....

 

Advanced Java generics: retreiving generic type arguments

java-logo

After their introduction in the JDK5, Java generics quickly became an integral element of many Java programs. However, as easy Java generics seem at first glance, as quickly a programer can get lost with this feature. Most Java programers are aware of the Java compiler’s type erasure. Generally speaking, type erasure means that all generic type information about a Java ...

Read More »

Java 8 parameter name at runtime

java-logo

Java 8 will be introducing an easier way to discover the parameter names of methods and constructors. Prior to Java 8, the way to find the parameter names is by turning the debug symbols on at the compilation stage which adds meta information about the parameter names in the generated class files then to extract the information which is complicated ...

Read More »

Playing with futures

scala-logo

During job interviews we often give Scala developers a simple design task: to model a binary tree. The simplest but not necessarily best implementation involves Option idiom:                 case class Tree[+T](value: T, left: Option[Tree[T]], right: Option[Tree[T]]) Bonus points for immutability, using case class and covariance. Much better but more complex implementation involves two ...

Read More »

MongoDB “Lightning Fast Aggregation” Challenged with Oracle

mongodb-logo

What does “Scale” even mean in the context of databases? When talking about scaling, people have jumped to the vendor-induced conclusion that: SQL doesn’t scale NoSQL scales It is very obvious that NoSQL vendors make such claims. It has also been interesting that many NoSQL consumers made such claims, even if they probably confused SQL in general with MySQL in ...

Read More »

Project Student: Webservice Client with Jersey

java-interview-questions-answers

This is part of Project Student. Other posts are Webservice Client with Jersey, Business Layer and Persistence with Spring Data. The first layer of the RESTful webapp onion is the webservice client. It can be used to mimic web pages containing AJAX content or by programmatic users of the webapp. N.B., the latter might include other webapps, e.g., if you ...

Read More »

Give Credit Generously

agile-logo

I had a boss who was great at saying, “Terri did this. Jen did that. JR did this other thing.” We all knew who had learned about different areas of the system, who had succeeded at which parts of testing or development or project management. It was great. She didn’t just tell us. Nope, our boss told her bosses. That’s ...

Read More »

Performance tuning – measure don’t guess

software-development-2-logo

In my performance tuning career I have given the advice to measure and not guess more often than I can recall. And in many cases the target of this advice has given up after looking at the monolithic 500,000 LOC legacy application they are working. In the post we are about to share some simple tools and concepts how to ...

Read More »

The infamous sun.misc.Unsafe explained

java-logo

The biggest competitor to the Java virtual machine might be Microsoft’s CLR that hosts languages such as C#. The CLR allows to write unsafe code as an entry gate for low level programming, something that is hard to achieve on the JVM. If you need such advanced functionality in Java, you might be forced to use the JNI which requires ...

Read More »

MongoDB Facts: Lightning speed aggregation

mongodb-logo

In my previous post, I demonstrated how fast you can insert 50 millions time-event entries with MongoDB. This time we will make use of all that data to fuel our aggregation tests. This is how one time-event entry looks like:             { "_id" : ObjectId("529a2a988cccdb538932d31f"), "created_on" : ISODate("2012-05-02T06:08:47.835Z"), "value" : 0.9270193106494844 } Beside the default ...

Read More »

Counting Distinct Records in SQL

software-development-2-logo

The SQL language and its depths… Some of you readers might be aware of MySQL’s capability of counting distinct records through the COUNT() aggregate function. The MySQL documentation reads: COUNT(DISTINCT expr,[expr...]) Returns a count of the number of rows with different non-NULL expr values. In other words, you can count distinct first and last names very easily: SELECT COUNT(DISTINCT FIRST_NAME, LAST_NAME) FROM CUSTOMERS ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.