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 ....

 

 

Netbeans Vaadin Example

Netbeans is a well known open source Java IDE, that supports development of all Java application types out of the box. It has an Ant-based project system and supports, Maven, refactoring, version control and has a lot of useful features to help you in your Java development. 1. The tools Java JDK 8 Latest Netbeans Vaadin 7.6.6 Tomcat Server 8 ...

Read More »

Writing JUnit Test Cases Using Mockito

In this example we will learn how to write JUnit tests using Mockito. A unit test should test a class in isolation. Side effects from other classes or the system should be eliminated if possible. Mockito lets you write beautiful tests with a clean & simple API. Tools and technologies used in this example are Java 1.8, Eclipse Luna 4.4.2 ...

Read More »

Hadoop Mapreduce Combiner Example

In this example, we will learn about Hadoop Combiners. Combiners are highly useful functions offered by Hadoop especially when we are processing large amount of data. We will understand the combiners using a simple question. 1. Introduction Hadoop Combiner class is an optional class in the MapReduce framework which is added in between the Map class and the Reduce class ...

Read More »

Git Clone Repository Example

In Git, git clone is a very important command. It can be understood by cloning or downloading a repository into a new directory from a remote server, like Github. It’s commonly used to connect to Github, based on knowing the project git link. 1. Introduction In addition, Git has multiple different repositories that we need to pay attention to, like ...

Read More »

JAVA Swing Button Example

In this article we will learn different types of Button and how to create them. A button is a component that a user clicks to trigger a specific action.To add a cross platform button JButton class is used. The abstract class AbstractButton extends class JComponent .To create a button, you can instantiate one of the many classes that descend from ...

Read More »

Vaadin Https Setup Example

HTTPS is a protocol for secure communication over a computer network which is widely used on the Internet. HTTPS consists of communication over Hypertext Transfer Protocol (HTTP) within a connection encrypted by Transport Layer Security or its predecessor, Secure Sockets Layer. 1. The tools Java JDK 8 Latest Eclipse Mars Vaadin 7.6.6 Tomcat Server 8 2. Introduction Vaadin UI is ...

Read More »

Hibernate Configuration File Tutorial

In this example, we will show how to configure hibernate. Hibernate requires to know in advance where to find all the mapping information related to java classes and database tables. There are some other database related settings that hibernate needs which are provided through configuration file. These configuration settings can be provided programmatically OR through a configuration file called hibernate.cfg.xml ...

Read More »

PowerMock Mock Static Method Example

In the Mockito Tutorial for Beginners, we did a general introduction to the Mockito mocking framework for JUnit tests. One the things that we did not see, was the mocking of static methods. That is because Mockito doesn’t allow to do that. To solve this, we will use PowerMock, a framework that extends Mockito’s functionalities (and other mocking frameworks’ also), ...

Read More »

MongoDB Node.js Tutorial

In the past examples we studied the basics of MongoDb and how to manage and maintain the Mongo DB. In this example, we will demonstrate how we can use Node.js to communicate with the MongoDB server. Table Of Contents 1. Introduction 2. Project Set-Up 3. Implementation 3.1 Insert 3.2 Update 3.3 Read 3.4 Delete 4. Conclusion 1. Introduction Node.js is ...

Read More »

Git Cherry Pick Example

Cherry Pick as a word seems to be very interesting, literally cherry picking in git means to choose a commit from one branch and apply it onto another. This functionality is in contrast with merge and rebase which normally applies many commits onto a another branch. In this example we shall see example usage of git cherry-pick command. 1. A ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns