Friday, July 31, 2020

How to implement our own Dynamic Array class in Java?

Given task is to implement a class in Java which behaves just like the Dynamic array using ArrayList. ArrayList is same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatically by the container. ◉...

Wednesday, July 29, 2020

Difference between JDBC and Hibernate in Java

Java is one of the most powerful and popular server-side languages in the current scenario. One of the main features of a server-side language is the ability to communicate with the databases. In this article, let’s understand the difference between two ways of connecting to the database (i.e.)...

Monday, July 27, 2020

Java String API regionMatches​()

Quick guide to Java String API regionMatches​() Method with Examples. This method is used to compare two sub strings. Syntax: public boolean regionMatches​(int toffset, String other, int ooffset, int len) 1. Java String regionMatches​() Overview In this tutorial, We’ll learn about Java String API regionMatches​() method to compare...

Wednesday, July 22, 2020

Ship your function

Now a days function as service(FaaS) is trending in serverless area and it is enabling new opportunity that allows to send function on the fly to server and it will start executing immediately.  This is helps in building application that adapts to changing users needs very quickly. Function_as_a_service...

Monday, July 20, 2020

How to change procedural code into object-oriented one?

What style should Clean Code be written in? Clean Code is not always object-oriented. Sometimes it will be written in procedural style. And what style is better: procedural or object-oriented? We should perform the choice under given conditions which facilitates its development and readability – in accordance with...

Friday, July 17, 2020

Java 8 Optional filter()

A quick example guide to Java 8 Optional filter() Method. filter(Predicate predicate) method used to return a Optional object for the given predicate(the condition). 1. Overview In this tutorial, We’ll discuss how to use Predicate with Optional class. The Java 8 Optional class has a method filter() which...

Wednesday, July 15, 2020

The Collection Interface

A Collection represents a group of objects known as its elements. The Collection interface is used to pass around collections of objects where maximum generality is desired. For example, by convention all general-purpose collection implementations have a constructor that takes a Collection argument. This constructor, known as a...

Monday, July 13, 2020

Java Compress/Decompress String/Data

Java provides the Deflater class for general purpose compression using the ZLIB compression library. It also provides the DeflaterOutputStream which uses the Deflater class to filter a stream of data by compressing (deflating) it and then writing the compressed data to another output stream. There are equivalent Inflater...

Friday, July 10, 2020

Hibernate and Spring Integration

We can simply integrate hibernate application with spring application. In hibernate framework, we provide all the database information hibernate.cfg.xml file. But if we are going to integrate the hibernate application with spring, we don't need to create the hibernate.cfg.xml file. We can provide all the information in the...

Pages (26)1234567 »