Articles on Trending Technologies

Technical articles with clear explanations and examples

Data plane Development Kit (DPDK)

LavanyaMalakalapalli
LavanyaMalakalapalli
Updated on 11-Nov-2024 1K+ Views

Network performance, including throughput and latency, is important for many applications. These include devices that manage wired and wireless systems, such as routers, firewalls, etc. High performance is also crucial for services like video streaming etc. Traditional networks are struggling with performance issues because the hardware they use to send and receive data packets has limitations. The main problem is that these networks rely on the kernel network protocol stack. This approach can be slow and inefficient, leading to delays. As networks handle more and more data, they need high-performance solutions to process traffic faster and more efficiently. What ...

Read More

Java program to read a large text file line by line

Saba Hilal
Saba Hilal
Updated on 08-Nov-2024 924 Views

This article includes the way to read text files line by line in Java. Here, the three different methods are explained with examples. Storing a file in text format is important especially when data from one structured /unstructured form is transferred to another form. Therefore, basic file transfer systems integrate the txt file reading and writing process as their application components. Therefore, how to use text file reading and writing methods is also important for making the parsers. Multiple Approaches The given problem statement is solved in three different approaches − By using the BufferedReader ...

Read More

Java program to print unique values from a list

AmitDiwan
AmitDiwan
Updated on 08-Nov-2024 2K+ Views

In this article, we will learn to print unique values from a List in Java. This program will use a loop-based approach to identify and display only the values that appear once, skipping any duplicates. This approach is helpful when working with datasets where you want to remove repeated items and focus on distinct entries. Problem Statement Write a program in Java to print unique values from a list. Below is a demostration of the same − Input 55, 67, 99, 11, 54, 55, 88, 99, 1, 13, 45 Output The distinct elements in the array are 55 67 99 11 ...

Read More

Java program to add period to LocalDate

Nancy Den
Nancy Den
Updated on 08-Nov-2024 877 Views

In this program, we will learn to add a specific period to a date using Java’s LocalDate class. By using Java's Period class, we can specify an amount of time (such as months and days) and then add this period to a LocalDate. The program demonstrates how to set a period and apply it to a given date to get a new, updated date. Steps to add Period to LocalDate  Following are the steps to add Period to LocalDate − Import LocalDate and Period from java.time package to work with dates and periods. ...

Read More

Java – MySQL connection with ipAddress

AmitDiwan
AmitDiwan
Updated on 08-Nov-2024 1K+ Views

In this article, we will learn how to connect a Java application to a MySQL database hosted on a specific IP address. By specifying the IP address in the connection URL, we can directly connect to the database even if it’s on a different machine. We’ll use the DriverManager.getConnection() method to initiate the connection. Steps to connect a MySQL database via IP Address Following are the steps to connect a MySQL database via IP Address − Import Connection and DriverManager classes from the java.sql package to enable database connectivity. Create a String ...

Read More

Java DatabaseMetaData supportsGroupBy() method with example

Rishi Raj
Rishi Raj
Updated on 08-Nov-2024 265 Views

In this article, we will learn how to check whether a database supports the SQL GROUP BY clause using JDBC in Java. The GROUP BY clause is used to organize identical data into groups in SQL queries, typically following the WHERE clause and preceding the ORDER BY clause. With JDBC, we can determine whether the underlying database supports this clause using the supportsGroupBy() method of the DatabaseMetaData interface. Problem StatementGiven a MySQL database, write a Java program that connects to the database and checks if the database supports the SQL GROUP BY clause.Input Database connection URL, username, and ...

Read More

Java DatabaseMetaData getMaxStatements() method with example.

Smita Kapse
Smita Kapse
Updated on 08-Nov-2024 271 Views

In this article, we will learn how to retrieve the maximum number of open statements allowed by a database using the DatabaseMetaData interface in Java. The getMaxStatements() method of the DatabaseMetaData interface is used to find out the maximum number of open statements (objects) that the underlying database allows at one time. This method returns an integer value, representing the maximum number of statements that are allowed to be open at a time. If this value is 0 it indicates that there is no limit or, the limit is unknown. Problem StatementGiven a connection to a database, write a ...

Read More

Difference between npm i and npm ci in Node.js

Moksh Gupta
Moksh Gupta
Updated on 08-Nov-2024 537 Views

Dealing with Node.js, using npm (Node Package Manager), is important for creating and installing the necessary packages for the project. While most developers know what happens when running npm install or npm i, the npm ci often appears in discussions about continuous integration and continuous delivery pipelines alongside reproducible build processes. This article is about the distinction between "npm i" and "npm ci", the situations in which one should be used over the other, and how each is employed. What is npm i (or npm install)? The "npm i" is actually an abbreviation for npm install, which is the main ...

Read More

Java DataBaseMetaData getMaxCatalogNameLength() method with example.

Smita Kapse
Smita Kapse
Updated on 07-Nov-2024 218 Views

In this article, we will learn how to retrieve the maximum number of characters allowed in a catalog name using the getMaxCatalogNameLength() method in Java. This method belongs to the DatabaseMetaData interface, which provides comprehensive information about the database, including its structure and capabilities. The method is useful for understanding the limitations imposed by the underlying database in terms of catalog name length. Problem StatementGiven a connection to a database, write a Java program to retrieve and display the maximum number of characters that the database allows for catalog names using the getMaxCatalogNameLength() method.Input A MySQL database connection URL, ...

Read More

Difference Between Generative AI and Machine Learning

Divya Onkari
Divya Onkari
Updated on 07-Nov-2024 493 Views

The disciplines of Artificial Intelligence (AI) and Machine Learning (ML) have gained a lot of traction in recent times which has resulted in the discussions around them on which many times, the lines are thin. Out of the many sub-areas that comprise the field of AI, Generative AI, and Machine Learning can be distinctively recognized because of their functionalities and uses. For anyone working with technology, in the corporate world, or in academia, understanding the differences between the two is vital in all these fields. What is Machine Learning? Machine Learning is a subfield of AI where researchers and developers ...

Read More
Showing 31721–31730 of 61,299 articles
Advertisements