Alshifa Hasnain has Published 283 Articles

Java ResultSetMetaData getScale() method with example

Alshifa Hasnain

Alshifa Hasnain

Updated on 27-Feb-2025 19:28:12

476 Views

In this article, we will learn the ResultSetMetaData getScale() method in Java. The ResultSetMetaData interface provides metadata about the columns in a ResultSet object. The getScale() method returns the number of digits to the right of the decimal point for a specified column. What is the getScale() method? The getScale() method ... Read More

Java DatabaseMetaData getDriverName() method with example

Alshifa Hasnain

Alshifa Hasnain

Updated on 27-Feb-2025 19:27:42

420 Views

In this article, we will learn about the DatabaseMetaData getDriverName() method in Java. The DatabaseMetaData interface provides useful methods to obtain details about the database and the JDBC driver. One such method is getDriverName(), which returns the name of the JDBC driver being used. What is getDriverName() in Java? The ... Read More

JavaScript regex program to display name to be only numbers, letters and underscore.

Alshifa Hasnain

Alshifa Hasnain

Updated on 27-Feb-2025 19:27:31

542 Views

In this article, we will learn the regex program to display names to be only numbers, letters, and underscores In Java. Validating user input is essential for maintaining data integrity and security in web applications.  JavaScript Regex for Name Validation Regular expressions regex is probably more powerful in defining patterns to ... Read More

JavaScript Callbacks

Alshifa Hasnain

Alshifa Hasnain

Updated on 26-Feb-2025 19:37:22

729 Views

In JavaScript, since functions are objects we can pass them as parameters to another function. These functions can then be called inside another function and the passed function is referred to as a callback function. Why Use Callbacks? The following are the advantages of using JavaScript Callbacks − ... Read More

JavaScript - Remove first n characters from string

Alshifa Hasnain

Alshifa Hasnain

Updated on 26-Feb-2025 19:37:10

397 Views

In this article, we will learn to calculate the union of two objects in JavaScript. The union of two objects results in a new object that contains all the properties of both objects. What is the Union of Two Objects? The union of two objects is the process of combining ... Read More

JavaScript union of two objects

Alshifa Hasnain

Alshifa Hasnain

Updated on 26-Feb-2025 19:36:58

563 Views

In this article, we will learn to calculate the union of two objects in JavaScript. The union of two objects results in a new object that contains all the properties of both objects. What is the Union of Two Objects? The union of two objects is the process of combining ... Read More

Java program to calculate area of a tetrahedron

Alshifa Hasnain

Alshifa Hasnain

Updated on 26-Feb-2025 19:36:26

463 Views

In this article, we will learn to calculate the area of a Tetrahedron using Java. A tetrahedron is a type of polyhedron that consists of four triangular faces. What is a tetrahedron? A tetrahedron is a three-dimensional polyhedron with four triangular faces, six edges, and four vertices. If all its faces ... Read More

Java Program for Iterative Merge Sort

Alshifa Hasnain

Alshifa Hasnain

Updated on 25-Feb-2025 19:21:22

531 Views

In this article, we will learn about iterative Merge sort in Java. Unlike the traditional iterative Merge Sort, the following Java program implements a recursive merge step while dividing the array and an iterative approach for merging. What is merge sort? Merge Sort is a popular sorting algorithm that follows ... Read More

JavaScript ArrayBuffer Object

Alshifa Hasnain

Alshifa Hasnain

Updated on 25-Feb-2025 19:21:12

771 Views

In this article, we will learn about JavaScript ArrayBuffer objects. The ArrayBuffer object in JavaScript is a fundamental part of the Web API for efficiently handling binary data.  What is ArrayBuffer? The JavaScript ArrayBuffer object represents a generic, fixed-length raw binary data buffer. To manipulate the contents of an ArrayBuffer ... Read More

JavaScript Prompt Example

Alshifa Hasnain

Alshifa Hasnain

Updated on 25-Feb-2025 19:20:56

641 Views

In this article, we will learn to use the prompt() function in Javascript. The prompt() method in JavaScript allows developers to collect user input through a pop-up dialog box. What is the prompt() Method in JavaScript? The prompt dialog box is very useful when you want to pop-up a text ... Read More

Advertisements