Mock Interviews for Java developers

Are you preparing for interviews specifically for a Java developer position. Why not try a mock interview with us. Our interviewers would conduct a short half an hour interview with you. You can pay as you wish for the interview. Fill the contact form below and we will send you an invite for a skype … Read more

Proxy Design Pattern with examples

proxy design pattern overview

Introduction to Proxy Pattern Proxy design pattern falls under the structural design pattern category and it is one of the most frequently used pattern in software development. This pattern helps to control the usage and access behaviours of connected resources. A separate object called ‘proxy’ helps to build the connection between the client and the … Read more

RESTFul webservices with Jersey And Spring

reset service test

JAX-RS and Jersey JAX-RS, is the “Java™ API for RESTful Web Services (JAX-RS)”. Documented in JSR 311 & JSR 339 it specifies a bunch of interfaces and annotations that can be used to define RESTful Webservices in java. Jersey is a reference implementation of JAX-RS Spec. In addition to implementing the JSR 331 and 339, … Read more

What is Visitor Design Pattern?

Visitor is a behavioural type of design pattern. Although this is not a very popular design pattern due to its narrow applicability, it can be carefully used to resolve complex behavioural situations. This pattern is useful when an object structure contains different kinds of operations to use in different situations. Elements of an object structure … Read more

Spring MVC Controllers

Spring MVC Controller provides simple but great way for creating Web Application using Java technology. Spring gives developer to ease of development using MVC design pattern. MVC stands for Mode-View-Controller, in this approach we can divide out software development into 3 layers namely Model, View, and Controller. Model layer is responsible for data related works, … Read more

New features in Java 10

Recently Oracle has announced the general availability of new features in Java 10 (JDK 10) on Mar 20, 2018. We can download Production-ready binaries of JDK 10 under the GPL from: Oracle [ http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html ] OpenJDK [ http://jdk.java.net/10/ ] Oracle has now shifted to a 6 months’ release pattern. Therefore, users will not be getting … Read more

Write to file in Java

This tutorial would be focusing on different ways of write to file using Java. Stream is a general mechanism of I/O in java. Stream provides sequential access of data. An input stream can be used by an application to read data. An output stream to write data. A file, network connection, arrays can act as … Read more

Java 8 flatMap examples

We would be looking at flatMap method in Java 8 streams and Optional. In our last tutorial we looked at map method in Java 8 stream example. Let us start with the examples 1. Flatten a List<List<String>> to List<String> using flatMap Here we have two lists, a list of front-end languages and a list of … Read more

Java 8 map method Examples

Java 8 map method example

In Java 8 streams map() method is one of the most important and the widely used methods of streams. In this tutorial, we would be looking at various ways we can use map method. These examples can help you understand the usage of Java 8 stream map() method. The javadocs describes the example:() method as: … Read more

Command Pattern with Java examples

command pattern class diagram

This pattern falls under the behavioral design pattern category. In this pattern, the information inside one request is mapped to a single object and then that object is used as required. It encapsulates a whole request as an object called ‘Command’. The ‘Command’ can be identified as a materialized method call. That object often contains … Read more