Ashin Vincent has Published 26 Articles

Difference between Go and Java.

Ashin Vincent

Ashin Vincent

Updated on 17-Apr-2025 18:51:39

396 Views

Both Go and Java are popular backend programming languages, and each has its own unique features. Java is an older language with a large community support, whereas Go is a comparatively newer language developed by Google. In this article, we will learn more about the differences between Go and Java. ... Read More

Java program to find Largest, Smallest, Second Largest, Second Smallest in an array

Ashin Vincent

Ashin Vincent

Updated on 16-Apr-2025 15:53:47

3K+ Views

In this problem we are given an array of numbers, and we have to find the largest, smallest, second largest, and second smallest elements in an array in Java. Let’s understand the problem better with the help of an example: Input int arr[] = {55, 10, 8, 90, 43, ... Read More

Find average of a list in Java

Ashin Vincent

Ashin Vincent

Updated on 16-Apr-2025 15:53:07

942 Views

Given a list of numbers, our task is to calculate the average of this list. The average of a list can be found by adding all the elements in the list and dividing the sum by the total number of elements. In this article we will learn different methods to ... Read More

Difference between Scanner and BufferReader Class in Java

Ashin Vincent

Ashin Vincent

Updated on 16-Apr-2025 15:51:50

12K+ Views

Scanner and BufferedReader classes are used to read input from an external system. Scanner is normally used when we know input is of type string or of primitive types, and BufferedReader is used to read text from character streams while buffering the characters for efficient reading of characters. What ... Read More

Differences between abstract class and concrete class in Java

Ashin Vincent

Ashin Vincent

Updated on 16-Apr-2025 15:48:22

12K+ Views

Abstract class and concrete class are fundamental concepts of object oriented programming in Java. In this article, we will learn the differences between an abstract class and concrete class. What is an Abstract Class? An abstract class is a class that cannot be used to create ... Read More

Java Runtime Environment (JRE) - Components and Execution Process

Ashin Vincent

Ashin Vincent

Updated on 30-Mar-2025 12:59:46

221 Views

Java Runtime Environment (JRE) JRE is a part of the Java Development Kit (JDK), which is responsible for executing a Java program. It acts as a mediator between the Java program and the OS. This allows the Java program to run on any system that has a compatible JRE installed. ... Read More

Duck Numbers in Java

Ashin Vincent

Ashin Vincent

Updated on 28-Feb-2025 15:16:49

204 Views

A duck number is a positive number that contains a zero in it, but the first digit of the number cannot be a zero. For example, 10305, 20050, and 603 are duck numbers, while 0349 and 2987 are not duck numbers, as 0349 starts with 0 and 2987 does not ... Read More

ATM Program JAVA

Ashin Vincent

Ashin Vincent

Updated on 28-Feb-2025 15:06:05

371 Views

In this article, we will learn how to build a simple ATM machine program in Java. This program lets users choose from the options displayed on the screen. Before choosing the options, the user has to enter their ATM PIN for verification. The default PIN will be '1234', which can ... Read More

What is memory-mapped file in Java?

Ashin Vincent

Ashin Vincent

Updated on 28-Feb-2025 14:42:52

87 Views

Memory mapping is a technique in Java that gives direct access to files through memory (RAM). A memory-mapped file connects disk content straight to RAM, which lets Java applications handle files as memory segments. This makes files to be treated as a large array and is much faster than regular ... Read More

Xylem and Phloem Number in Java

Ashin Vincent

Ashin Vincent

Updated on 28-Feb-2025 14:28:54

403 Views

A number is a Xylem number if the sum of extreme digits (first and last) equals the sum of its mean digits (all digits except first and last). If the sum of the extreme digits does not match the sum of the mean digits, then it is a Phloem number. ... Read More

Advertisements