Articles on Trending Technologies

Technical articles with clear explanations and examples

How to find total area when two rectangles overlap each other in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 589 Views

A Rectangle is a four sided-polygon, with opposite side equal and having all the internal angles equal to 90 degrees. In this article we will check how to find total area when two rectangles overlap each other. We will be given with two rectangle having length and breadth. Also we will we given with intersecting length and width of the two rectangles as shown in the figure − To find the total area of a rectangle we basically add areas of two rectangles. This includes the intersecting part twice, so we subtract the area of intersecting part. Total ...

Read More

Find Column Which is Having Maximum 0’s in a Binary Matrix in Java

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 469 Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. A binary matrix is a matrix of 0s and 1s, where each element can only be one of two possible values. Here we have given a binary matrix which contains set of binary elements and as per the problem statement we have to find the column which is having maximum number of 0’s. Let’s start! To show you some instances Instance-1 Given binary matrix =1 ...

Read More

Find Product of Sum of First & last Row Elements of a Matrix in Java

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 848 Views

Matrices are nothing but it’s more than a collection of data elements arranged in a rectangular layout that is two-dimensional. In Java, an array with two dimensions can be considered as a matrix. As per the problem statement the task is to find the product of sum of all elements in first row and last row. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose the original matrix is{{15, 5, 9}, {4, 14, 16}, {7, 8, 19}}; After finding product of sum ...

Read More

Find Number of Odd and Even Elements in Each Row of a Matrix in Java

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 893 Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. Here we have given a matrix which contains set of elements and as per the problem statement we have to find out the number of odd elements and even elements in each row of a matrix. Let’s start! To show you some instances Instance-1Given matrix = 21 22 23 24 25 26 27 28 29 Row 1 has 2 odd elements and 1 even element Row 2 has ...

Read More

How to convert Wrapper Objects to Primitive Types in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 5K+ Views

In Java, A primitive type (i.e., int, double, float, etc.) is a basic data type that is built into the language and is not an object. Primitive types have a fixed size and can be used directly in calculations and operations. A wrapper object is nothing but an object representation of a primitive type. For example, the Integer class is a wrapper object for the int primitive type. Wrapper objects are instances of classes and have methods that can be called, while primitive types do not. However, using wrapper objects requires more memory than using primitive types, ...

Read More

How to Convert String to Object in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 6K+ Views

In Java, Object is a parent class of all the classes. So, we can directly assign a string to an object as each class is internally a child class of the Object class. A string is generally considered a data type and is often implemented as an array data structure of bytes (or words) that stores a sequence of elements, typically characters, using some character encoding. The object data type is also known as non-primitive or reference data type; these are not predefined ones; instead, we need to create them. Let’s deep dive into this article, to know how it ...

Read More

How to Convert Date to Timestamp in Java?

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 6K+ Views

In Java, Date can be converted Timestamp by using Timestamp class. Timestamp class is present in sql package. Date only store date value whereas timestamp stores both date and time value. The TIMESTAMP data type is used for values that contain both date and time parts. TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC. Let’s deep dive into this article, to know how it can be done by using Java programming language. To show you some instances Instance-1 Suppose the input date is written on 05/01/2023. Then corresponding Timestamp is “2023-01-05 20:37:54.832”. Instance-2 ...

Read More

What is the SAC Code for Digital Marketing?

Geerthana M.S
Geerthana M.S
Updated on 04-May-2023 4K+ Views

Digital Marketing is important for the success of any company, brand, goods, or operation. With the proliferation of advertising mediums, the tax reporting of a single medium gets more complicated. Let's go over the GST taxability provisions for advertising services. SAC in Digital Marketing/Advertising In India, the SAC code system is used to identify, categorize, quantify, and determine whether GST is applicable to services. GST applies to all forms of promotion (sale of space in digital and print media). Promotional services are classified into two groups for Federal tax purposes − Advertisements via digital technology Traditional print promotion ...

Read More

Find product of Each Row and Column in Java

Mr. Satyabrata
Mr. Satyabrata
Updated on 04-May-2023 1K+ Views

In Java, Array is an object. It is a non-primitive data type which stores values of similar data type. The matrix in java is nothing but a multi-dimensional array which represents multiple rows and columns. Here we have given a matrix which contains set of elements and as per the problem statement we have to find the product of each row elements and columns elements. In this article we will see, how it can be done by using Java programming language. To show you some instances Instance-1 Given matrix =21 22 23 24 25 26 27 28 29 Product of each row − ...

Read More

What is the Role of ORM in Digital Marketing?

Geerthana M.S
Geerthana M.S
Updated on 04-May-2023 600 Views

The main objective of online reputation management, or ORM, is to promote a good portrayal of an item or organization. Any action in which a product engages should therefore be watched and controlled in order to assist form the attitudes of current and demanded consumers, potentially making the firm look trustworthy and reputable. As a consequence, guaranteeing this because when company organization is googled, the greatest and perhaps most favorable results appear first is a potentially important aspect of any ORM plan.Factors Contributing to ORM Even though each company's approach to content marketing strategy will be varied, ...

Read More
Showing 37271–37280 of 61,299 articles
Advertisements