Software Development

How to reverse a string in Javascript?

How to reverse a string in Javascript?

Introduction One of the most typical JavaScript interview questions during the technical round is how to reverse a string. Interviewers could ask you to build various techniques for reversing strings, to do it without the use of built-in methods, or even to do so by utilising recursion. Several tens of

Blog | Board Infinity
Blog | Board Infinity
Software Development
Learn about Throw and Throws in Java

Learn about Throw and Throws in Java

In Java, the concept of Throw and throws are useful in exception handling. A throw keyword raises an exception explicitly from a method or code block, while throws get used in a method's signature. What is Throw in Java? In Java, the throw keyword raises an error that the programmer

Blog | Board Infinity
Blog | Board Infinity
Software Development
A Quick Guide to Page Replacement Algorithm

A Quick Guide to Page Replacement Algorithm

Introduction In this article, we will discuss the page replacement algorithm in the operating system. The page replacement algorithm is responsible for deciding which page is required to be replaced if a new page comes in. Page fault The page fault occurs when a running program tries to capture the

Blog | Board Infinity
Blog | Board Infinity
operating system
upcasting and down casting representation

Learn about Upcasting and Down Casting

Introduction The act of converting from one type to another is known as type casting. Type casting is a feature that permits the form or type of a variable or object to be converted into another sort of object. The various data types in java are char, int, short, long,

Blog | Board Infinity
Blog | Board Infinity
Software Development
thread sleep method in java

Learn about Thread Sleep Method in Java

Introduction The Java Thread.sleep() method allows you to pause a thread's execution for a specified period in milliseconds. Negative values are not allowed for milliseconds. Otherwise, it will throw an IllegalArgumentException. sleep(long millis, int nanos) is another method for pausing thread execution for a specific time. The values

Blog | Board Infinity
Blog | Board Infinity
Software Development
find smallest/largest element in an array

How to find the kth smallest/largest element in an array?

Overview Given an unsorted array “arr”, find and print the “kth” smallest/largest element of the array. Scope * The method of sorting the array. * The method of using a min-heap data structure. * The method of using a max-heap data structure. By sorting the array Concept We can sort the given

Blog | Board Infinity
Blog | Board Infinity
DSA
A Quick Guide to Bubble Sort Algorithm

A Quick Guide to Bubble Sort Algorithm

Introduction In this article, we will learn about the bubble sort algorithm and its implementation with the help of examples. When two neighboring elements are compared and swapped until they are in the desired order, the sorting technique known as bubble sort is used. In each iteration, each element of

Blog | Board Infinity
Blog | Board Infinity
Software Development
Understanding JDBC in JAVA

Understanding JDBC in JAVA

Introduction Java code may interface to relational databases like Postgres, Oracle, MySQL, H2 Database, and others thanks to the Java JDBC API (Java Database Connectivity). Relational databases may be accessed and updated using the JDBC API. Stored procedures can also be called, and metadata about the database can be obtained.

Blog | Board Infinity
Blog | Board Infinity
Software Development
How to Perform Insertion Sort in C++?

How to Perform Insertion Sort in C++?

Introduction In this article, we will learn about Insertion Sort. It places an unsorted element in the proper location after each iteration. Insertion sort functions similarly to how we sort the cards in our hands when playing cards. Assuming the first card is already sorted, we choose an unsorted card

Blog | Board Infinity
Blog | Board Infinity
Software Development
Learn how to do Pyramid Pattern printing in Java

Learn how to do Pyramid Pattern printing in Java

Introduction One of the most common questions in Programming is pattern printing, where you're asked to print different patterns according to the input given. One such problem is Pyramid Pattern printing. In this article, we will see how we can print a pyramid pattern in Java using different iterations. Sample

Blog | Board Infinity
Blog | Board Infinity
Software Development