Home » Author Archives: Ima Miri

Author Archives: Ima Miri

Ima Miri

Ima is a Senior Software Developer in enterprise application design and development. She is experienced in high traffic websites for e-commerce, media and financial services. She is interested in new technologies and innovation area along with technical writing. Her main focus is on web architecture, web technologies, java/j2ee, Open source and mobile development for android.

Trie tutorial in java

In this tutorial, we are going to discuss a data structure called Trie. Trie is a tree structure representing words. It could be used for implementing dictionary or spell checker. The following tutorial is implemented in java using junit 4.12 for unit test. 1. Introduction to Trie Trie is an ordered tree structure which takes advantage of the structure of the keys ...

Read More »

Spring Boot and AngularJS Integration Tutorial

This tutorial helps you to build a simple spring boot application. Also, you might like to implement a simple UI such as an administrator tool or control panel to work with the backend. This is when I start learning about Angularjs to develop a simple UI for a monitoring project at work. I’ve found Spring boot and Angularjs very easy to work with, especially when ...

Read More »

Angularjs and Spring Integration Tutorial

HTML5, rich browser-based features, and the single page application are extremely valuable tools for modern development. Every application requires a server side (backend) framework besides the client side (frontend) framework. The server side can serve content, render dynamic HTML, authenticate users, secure access to protect resources or interact with Javascript in the browser through HTTP and JSON. Spring has been always one of the ...

Read More »

Spring MVC Interceptor Tutorial

In this tutorial, we are going to discuss about SpringMVC Interceptor. First, we discuss about Spring MVC architecture and where an interceptor is invoked in this architecture, then we have a look at the implementation of interceptor in more details. 1. Overview of Spring MVC Architecture Spring’s web MVC framework is request-driven and designed based on a central Servlet that dispatches requests to controllers ...

Read More »

How List works internally in Java

List is one of common collections in Java. Here we are going to discuss about list and how it works internally in java. 1. List/ArrayList/LinkedList A List is an ordered Collection. Lists may contain duplicate elements. In addition to the operations inherited from Collection, the list interface includes operations for the following:     Positional access (random access): manipulates elements based on their ...

Read More »

How Map/HashMap Works Internally in Java

This is one of the java interview questions that can put the candidate in a challenge. Most of java developers may not have a deep understanding of the Hashing and how HashMap works inside Java. Here we will discuss about it. 1. Map and HashMap Map is a collection which stores elements as key-value pairs. A map cannot contain duplicate keys and each ...

Read More »

How Set/HashSet works internally in Java

This is one of frequently asked java questions in interviews. However, not many programmers know that HashSet uses HashMap internally in java. Here we discuss in details how HashSet works inside java. 1. Set and HashSet Set is a collection that contains no duplicate elements. So, it can contain at most one null. HashSet implements Set interface in java. It is ...

Read More »

How to create Immutable class in java

1. Immutable class Immutable class is a class which the state of its instances does not change once it is constructed. Immutable objects are especially useful in concurrent applications. Since they cannot change state, they cannot be corrupted by thread interference or observed in an inconsistent state. There are number of immutable classes in java such as java.lang.String, java.lang.Integer, java.lang.Float and java.math.BigDecimal. Lets have a look at the ...

Read More »

Java Multithreading Tutorial

Multithreading is the ability of a program to manage its use by more than one user and even to manage multiple requests by the same user. In the Java programming language, concurrent programming is mostly concerned with threads. However, processes are also important. 1. Process and Thread A process is an execution of a program and a thread is a single execution of work within the process. ...

Read More »

Java 8 Lambda Expressions Tutorial

Lambda expressions are an important new feature in Java 8 which provide a clear and concise way to represent a functional interface using an expression. They also improve some functionality in Collection libraries such as iterate, filter and extracting data from a Collection. 1. Lambda Expression Syntax A lambda expression is included three parts. Argument List Arrow Token Body (int x, int y) -> ...

Read More »