Java

Java Streams Questions

Introduction A stream is like a pipeline with start, intermediate, and terminal operations, although it is similar to a Collection, however, there are some differences Write 5 Stream Sources Convert a List of Strings(India, Canada, USA) to a List Of Characters Finding the largest Element without using Built In Function from 4,8,24,3,22 Find the sum …

Java Streams Questions Read More »

Memory Analysis In Java

Introduction Java heap dumps and thread dumps are a powerful way to investigate what’s going on in the Java Virtual Machine (JVM). A heap dump allows you to see what is kept in memory after a minor and major garbage collection. Therefore, heap dumps provide indispensable insights that can be used for troubleshooting memory leaks. …

Memory Analysis In Java Read More »

Multi-Threading In Java

Performance makes or breaks an application and in this Digital age of short attention spans, companies are looking for high-performance applications -Multithreading is a powerful weapon to achieve this target. What is Multithreading We have all heard the phrase Divide and conquer, well Multithreading is basically doing the same, by dividing a task into multiple …

Multi-Threading In Java Read More »

Jigsaw: Intro to Java Platform Module System

Introduction The idea and exploration of Project Jigsaw began in 2008 with the aim to split JDK into smaller parts. Work on the design and implementation for Java 9 began in 2014 and was released as part of JDK 9 in September 2017. The major purposes of JPMS are the following. A format for module JAR files Partitioning of the JDK …

Jigsaw: Intro to Java Platform Module System Read More »

DateTime & Locale in Java

Introduction Java language supports working with date and time, formating dates, and resource bundles. Java 8 provides a lot of new libraries from java.time packages, earlier classes were from Date and Calendar. The later classes were mostly deprecated due to issues in i18n & localization. Date – Time LocalDate LocalDate.now() LocalDate.of(2021,12,21) LocalDate.parse(“2021-12-21”) localDate.plusWeeks(1) localDate.withYear(2021) LocalTime …

DateTime & Locale in Java Read More »

Internal workings of Java Virtual Machine

Introduction The Java virtual machine is an abstract (virtual) computer defined by JVM specification. JVM’s primary function is to execute the byte code and reference implementation is given out by the HotSpot JVM. HotSpot JVM is available in 32-bit and 64-bit variants. The JVM is primarily written in CPP and is open-sourced. JVM architecture can …

Internal workings of Java Virtual Machine Read More »

Java 101

Classes A Java class file is a file containing Java bytecode that can be executed on the Java Virtual Machine. A class could be public, default, strictftp, final, and abstract modifiers. Public Class from all packages access to public class. Default Class should be same package, or else it will not be not visible. Strictftp …

Java 101 Read More »

error: Content is protected !!
Scroll to Top