Ashin Vincent has Published 24 Articles

Difference between Go and Java.

Ashin Vincent

Ashin Vincent

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

521 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

4K+ 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

1K+ 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

13K+ 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

13K+ 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

Duck Numbers in Java

Ashin Vincent

Ashin Vincent

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

761 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

2K+ 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

498 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

2K+ 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

Print the season name of the year based on the month number in java

Ashin Vincent

Ashin Vincent

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

517 Views

In this article, we will explore different methods to find the season name from the month number in Java. When the user inputs the month number, the output should be the season by the name associated with the month. If the user enters 1 as the month number, the month ... Read More

Advertisements