Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Java program to verify whether a given element exists in an array
Given an array and one of its element as an input, write a Java program to check whether that element exists in given array or not. You can find any element from an array using search algorithms. In this article, we will use linear search and binary search algorithms. Using Linear Search Algorithm In this approach, follow the steps below to verify whether a given element exists in an array − Iterate through the array using for loop. Compare each element with the required element. If found return the index. Example The following Java program shows how ...
Read MoreJava strictfp keyword
The strictfp keyword is a modifier that stands for strict floating point. As the name suggests, it ensures that floating-point operations give the same result on any platform. This keyword was introduced in Java version 1.2. In Java, the floating point precision may vary from one platform to another. The strictfp keyword solves this issue and ensures consistency across all platforms. With the release of Java 17 version, the strictfp keyword is no longer needed. Regardless of whether you use this keyword, the JVM now provides consistent results for floating-point calculations across different platforms. When to use Java strictfp keyword? ...
Read MoreDifference between Parallel and Distributed Computing
Distributed and parallel computing consists of multiple processors or autonomous computers where either memory is shared or a computer is used as a single system. In this article, we will discuss the difference between distributed and parallel computing. What is Parallel Computing? Parallel computing is a system in which multiple processors are used to perform different types of tasks. This is a system in which memory can be shared or distributed between the processors. Parallel computing is a system which can be used to save money and time. Parallel computing is also known as parallel processing in which each processor ...
Read MoreDifference between Shared Lock and Exclusive Lock
There are situations in a database in which if one transaction has to access data, other transactions should not be allowed to access the same data. In such a case, the lock is important to prevent other transactions from using the data that is being used by a transaction. Locks are of two types which include shared locks and exclusive locks. In this article, we will see the difference between shared lock and exclusive lock. What is a Shared Lock? Shared lock is a lock that does not permit to work on data by a transaction if it is being ...
Read MoreDifference Between AI, Machine Learning, and Deep Learning
The most trending technical topics nowadays are artificial intelligence, machine learning, and deep learning. All these technologies are being implemented nowadays in different machines, software applications, etc. In this article, we will discuss the difference between artificial intelligence, machine learning, and deep learning. What is Artificial Intelligence? Artificial intelligence is a technology in which a list of rules is used by machines and they act in the same way as humans. AI can be defined as the training of machines by using different algorithms so that they can act in the same way as humans. AI has the parts which ...
Read MoreDifference between Web Hosting and Web Publishing
Web hosting and web publishing are the most important aspects if you want to make your website online. Web hosting is a technology which can be used for storing your website on a web server. Web publishing is a technology which can be used for creating content and adding it to your website. In this article, we will discuss the difference between Web Hosting and Web Publishing. What is Web Hosting? Web hosting is used to upload a website on the internet with the help of WWW. The main job of web hosting is to provide storage space for the ...
Read MoreDifference between Structured and Object Oriented Programming
Programming is of different types like structured, procedural, functional, object-oriented, etc. All these programming types have different features and developers have to choose the one to develop a program or an application. In this article, we will discuss the difference between structured and object-oriented programming. What is Structured Programming? Structured programming is a type of programming in which separate modules are used to develop a program. All these modules are properly structured. This is a type of programming in which developers have the opportunity to create user-defined functions. Programmers can follow the logic of the program easily. Programming languages that ...
Read MoreDifference between Copy and Move Files
The most common operations that users perform on Windows Explorer are copying, moving, renaming, and deleting files and folders. Copying and moving files are done from − Folder to folder Drive to drive Both of them are easy tasks which can be done by anybody. In this article, we will discuss the difference between copy and move files. What is Copy File? When a file is copied from one location to the other, a copy remains at the original location. If a file is copied and pasted on the same location Windows adds "Copy" at the end of ...
Read MoreWhat is positive leadership? Definition, Traits and Skills
Leadership is a quality that constitutes 90 percent of the qualitative requirements of a true professional/entrepreneur in an enterprise. The impact of quality leadership is undeniably among the primary factors that helps build up and maintain a workforce needed for a workplace. There are many who seek leaders rather than bosses, which implies that what workers look for is inspiration and guidance rather than enforcement and diktats. This is the context in which positive leadership takes centerstage, becoming the essential factor that determines the success of an organized activity as in a business enterprise. What is Positive Leadership? The ...
Read MoreJava program to Print Odd and Even Number from an Array
Given an array of type Integer, write a Java program to find the odd and even numbers from that array. Those numbers which are completely divisible by 2 are called even numbers and if a number gives 1 as a remainder on dividing with 2 is known as odd number. Printing Odd and Even Number from an Array To print odd and even number from an array in Java, use the following ways − Using for Loop Using stream API Using for Loop In this approach, use the for ...
Read More