Author: Editorial Team
-
Spliterator in Java
1. Introduction In this tutorial, we’ll discuss Spliterator interface. This is one of the items added in Java 8 for parallel processing. The Spliterator interface was added in Java 8. Its name stands for “splitable iterator”. Spliterators, like Iterators, are for traversing the elements of a source. Spliterators can traverse the elements of a source…
-
Compact Strings in Java 9
1. Introduction JEP 254 introduced a more space-efficient internal representation of strings. This was introduced in Java 9. A String in Java is internally represented as char[] array. Since Java uses UTF-16, each character of char[] takes up space of 2 bytes (sixteen bits). In most of the applications, strings are prominently used and consume…
-
Convenience Factory Methods for Collections
1. Introduction JEP 269 introduced this enhancement which is the one-liner concise way of creating compact, unmodifiable collection instances with small number of elements. This enhancement of Java 9 defines library APIs to make it convenient to create instances of collections and maps with small number of elements. The purpose of these factory methods for…
-
Components and props
1. Introduction In this tutorial, we’ll discuss two of the main building block of an application – components and props. Component is an independent, reusable piece of which the UI is made. Components make it possible to break down the UI of your application into smaller reusable components. A component can be written as a…
-
Install Bootstrap in React project
1. Introduction Bootstrap is one of the most popular frontend toolkit for developing responsive, mobile-first front-end projects. In this tutorial, we’ll discuss two ways to install Bootstrap in a React project. Using CDN Install Bootstrap in your Node.js powered apps with the npm package. 2. Using CDN In this way of installing Bootstrap, you just…
-
What is JSX
1. Introduction In this tutorial, we’ll discuss one of the most important building block of React, the JSX. While working with React, you may come across like the following: This neither looks like a string nor HTML. JSX (JavaScript Syntax Extension) is a React extension to the JavaScript language syntax. 2. Why JSX? React components…
-
Create React App project folder structure
1. Introduction In this tutorial, we’ll discuss the folder structure of a React project created by Create React App. We’ll discuss what is the purpose of different files automatically generated by Create React App. 2. Project folder structure The following image shows the typical project generated by Create React App: Following is the brief description…
-
Create a new single-page React application
1. Introduction In this tutorial, we’ll create a React application from scratch. 2. Create React App Create React App is the best way to start building a new single-page application in React. Create React App sets up your development environment and optimizes your application for production. It sets up your development environment so you can…
-
React – an introduction
1. Introduction React is a JavaScript library for building user interfaces. React is free and open-source. It is maintained by Meta (formerly Facebook) and a community of individual developers and companies. React can be used to develop single-page, mobile or server-rendered applications. React is not a framework and does not provide all the capabilities. React…
-
Metaspace – Class Metadata in Java 8
1. Introduction Java classes are not saved as it is and have internal representation in JVM. This internal representation is referred to as class metadata. Before Java 8, the class metadata was allocated in space called as “permanent generation“. This permanent generation space is commonly known as Permgen space. Starting with JDK 8, the permanent…
