Octal Number Octal number is also one of the number systems available. The octal number is represented with 8 digits which is from 0 to 7(0, 1, 2, 3... 7). The octal numbers are expressed as base-8 in the numeral system. Hexadecimal Number Hexadecimal number is also one of the number systems available. The hexadecimal number is represented with 16 digits which is from 0 to 15(0, 1, 2, 3... 15). From 10 to 15 it is represented as A to F. The hexadecimal numbers are expressed as base-16 in the numeral system. Problem Statement First convert the octal ... Read More
The interface set does not allow duplicate elements. The add() method of this interface accepts elements and adds to the Set object, if the addition is successful it returns true, if you try to add an existing element using this method, the addition operations fails returning false. Problem Statement Given a file which contains duplicate lines, write a program in Java to read the file, remove duplicate lines, and write the unique lines to a new file. Input Hello how are you Hello how are you welcome to Tutorialspoint Output Hello how are you welcome to Tutorialspoint ... Read More
Data analytics is a process which is used to reach the conclusion of the given information. This process is done by filtering the raw data. Predictive analytics is a process in which predictions are made about the results with the help of the current information. In this article, we will discuss the difference between Data and Predictive Analytics. Data Analytics Data analytics is a process in which the raw data is analyzed and conclusions are drawn accordingly. A systemic computational process is needed along with cleaning, aggregation, visualization, and interrogation of the data. The output of the data analytics is ... Read More
In Java, verifying whether a string is a valid number is a common requirement in various applications. This process ensures that the string can be safely converted to a numerical type without causing runtime exceptions. To validate if a string can be converted to these types, we use the Integer.parseInt() and Float.parseFloat() methods, respectively. Problem Statement Given a string that may contain an integer or a float value, write a Java program to check whether it is valid number or not. Input "100" //string value Output 100 // ... Read More
In a database system, where more than one transaction is being executed simultaneously and in parallel, the property of isolation states that all the transactions will be carried out and executed as if it is the only transaction in the system. No transaction will affect the existence of any other transaction. Transaction Isolation Levels in Java Connection JDBC (Java Database Connectivity) provides support 5 transaction isolation levels through Connection interface. TRANSACTION_NONE: It is represented by integer value 0 does not support transactions. TRANSACTION_READ_COMMITTED: It is represented by integer value 2 supports ... Read More
In this article, we need to display the HTML content of the page in an iframe; A browser window divided as a separate page. We can achieve this task using the tag and it’s srcdoc attribute. HTML tag The tag in HTML specifies an inline frame. This inline frame is used to embed another document within the current HTML document. This tag is supported by every browser such as Google Chrome, Microsoft edge/ internet explorer, Firefox, safari, and opera, etc. The “srcdoc” attribute of the tag is used to specify the HTML content of the page ... Read More
Programming languages are used to write code to develop websites and applications. Framework is a platform on which different programming languages can work. Programming languages depend on syntax while frameworks deal with architecture. In this article, we will talk about the difference between Frameworks and Programming Languages. Programming Languages Software developers use different kinds of programming languages to develop an application. They have to use the syntax of a programming language to give instructions. These instructions let the computer know how to execute a code. The processor converts the code into machine language which is understood by computers. The output ... Read More
In Java, counting the occurrences of each character in a string is a common task that can be efficiently performed using a HashMap. A HashMap allows us to store key-value pairs, where each unique character in the string is a key, and the value is the count of its occurrences. Problem Statement Given a string, we need to count how many times each character appears in the string. For example, in the string thisisit, the character t appears twice, h appears once, i appears three times, and s appears twice. Input String myStr = "thisisit"; Output Counting ... Read More
In this article, we will learn how to find common elements in two array-list. The ArrayList class extends AbstractList and implements the List interface. ArrayList supports dynamic arraysthat can grow as needed. Problem Statement In the given array, we aim to find the common elements in two ArrayList objects in Java, array lists are created with an initial size. When this size is exceeded, the collection is automatically enlarged. When objects are removed, the array may be shrunk. Below is a demonstration of the same − Input − First list: [Java, Scala, Shell, JavaScript] Second list: [Java, Python, Shell] Output ... Read More
Conceptual database design is the process of identifying the essential data elements, relationships, and constraints in a data model, which represents a particular organization's business requirements. The conceptual design stage is the first step in the database design process, which precedes the logical and physical design stages. In this article, we will discuss the conceptual database design, its objectives, its process, and the key components of a conceptual data model. Objectives of Conceptual Database Design The primary objective of conceptual database design is to create a high-level data model that reflects the business requirements and provides a clear understanding ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP