Home » Archives for Mary Zheng » Page 4

Author Archives: Mary Zheng

Mary has graduated from Mechanical Engineering department at ShangHai JiaoTong University. She also holds a Master degree in Computer Science from Webster University. During her studies she has been involved with a large number of projects ranging from programming and software engineering. She works as a senior Software Engineer in the telecommunications sector where she acts as a leader and works with others to design, implement, and monitor the software solution.

What is Kubernetes

1. Introduction Kubernetes(k8s) is an open-source container-orchestration management tool that ensures that containers run in the “desired state” all the time. It was developed by Google and released as an open-source project in 2015. The word Kubernetes means “helmsman” in ancient Greek. Kubernetes is a tool that manages containers with easy deployment, monitoring, scalability, and auto-recovery. According to Kubernetes architecture, ...

Read More »

Hello World Docker Image

In this article, we will show how to build and run a Hello World Docker Image. 1. Introduction A Docker container image is a lightweight, standalone, and executable software package that includes everything needed to run an application. It uses the underlying operating system resources. In this example, I will use “Docker Desktop for Windows” to demonstrate: Build a “Hello ...

Read More »

Java POJO and Java Bean Example

1. Introduction POJO stands for a Plain Old Java Object. It’s a term coined by Martin Fowler, Rebecca Parsons, and Josh MacKenzie while preparing for a conference in September 2000. POJO is an ordinary Java object which doesn’t tie to any framework or external reference. It has no naming rule for its methods nor data members. Java Bean is a ...

Read More »

Java Array Contains Example

1. Introduction An array is a container object that holds a fixed number of elements with a single type. Java not only provides Arrays to copy, sort, and search elements, it also provides the collection framework to check if a certain value in a collection with the contains method. In this example, I will demonstrate: Find an element in a ...

Read More »

Serializable Java Example – How to serialize and deserialize objects

In this article, we will discuss what is Serializable in Java using examples and how to serialize and deserialize objects. Serialization in java is the process of converting an object into a stream of bytes. You can also check this tutorial in the following video: Java Serialization Tutorial – video 1. Introduction De-serialization is the reverse process which converts a ...

Read More »

Default Constructor Java Example

In this post, we feature an example of the Default Constructor in Java. 1. Introduction When the Java compiler compiles the Java source code (.java) into the Java byte code (.class), it will create a public no-argument constructor for the class if it has no constructor defined. This public no-argument constructor is called a default constructor. Its implementation body only ...

Read More »

Java Static Keyword Example

1. Introduction In this post, we feature a comprehensive example of the Java Static Keyword. We are also going to see the static variable in Java. Java programming language defines a list of keywords. Here is the static keyword definition from Oracle: static is a keyword which defines a variable as a class variable. Classes maintain one copy of class ...

Read More »

Java Unit Testing with Mockito Example

In this post, we feature a comprehensive article about Java Unit Testing with Mockito Example. 1. Introduction Java unit testing is a software testing which focuses on testing methods in a class. When a class depends on other classes and/or interfaces, we can test it by using Mockito to create and configure mock objects. In this example, first, I will ...

Read More »

Java Unit Testing with JUnit Example

This is an article for Java Unit Testing with JUnit Example. You can also check this tutorial in the following video: JUnit Testing in Java – video 1. Introduction Java unit testing is a software testing where methods and classes are tested. JUnit is a unit testing framework for the Java programming language which provides a way to test the ...

Read More »

Java Unit Testing Tutorial

This is a tutorial for Java unit testing. In this tutorial, I will create a spring boot application which includes test cases written with Junit, Mockito, and Spring test. The overall unit tests cover 90 percent of the application. You can also check this tutorial in the following video: Unit Testing Tutorial – video Table Of Contents 1. Introduction 2. ...

Read More »