
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 33676 Articles for Programming

471 Views
A matrix is a set of numbers arranged in rows and columns. A matrix with m rows and n columns is called an m X n matrix and m and n are called its dimensions. A matrix is a two dimensional array, which is created by using lists or NumPy arrays in python. In general, Matrix multiplication can be done by multiplying the rows of the first matrix by the column of the second matrix. Here, the number of columns of the first matrix should be equal to the number of rows of the second matrix. Input Output Scenarios Assuming ... Read More

1K+ Views
A matrix is a two-dimensional array of many numbers arranged in rows and columns. The addition of two matrices is a process of adding corresponding elements of two matrices and placing the sum in corresponding position of the resultant matrix. And this can be possible, only if both the matrices have an equal number of rows and columns. In Python multidimensional arrays are created by using lists or NumPy arrays. The list data structure can accept lists as elements so that we can easily create matrice. Also, the Numpy module provides numerous methods to work with multidimensional arrays. ... Read More

315 Views
The diagonals are nothing but crosswise elements of a matrix. A square matrix has two diagonals. One is the Primary diagonal - located from the top left corner to the bottom right corner of a square matrix. And the second one is the Secondary diagonal - located from the top right to the bottom left corner. Interchange the diagonals is nothing but changing the primary and secondary diagonal elements of a matrix. See the below scenarios to understand it briefly Input Output Scenarios Assume we have a square matrix. And output matrix will be the resultant matrix ... Read More

268 Views
A matrix is a two-dimensional array of many numbers arranged in rows and columns form. Python does not have any data type to represent a matrix, but we can use a nested list or NumPy array as a matrix. See the below input output scenarios to understand how to interchange the first and last column elements of a matrix. Input Output Scenarios Assume we have a 3X3 matrix represented using a list of lists. And output matrix will be the resultant matrix whose first and last column elements are interchanged. Input matrix: [1, 3, 4] [4, 5, 6] [7, ... Read More

153 Views
A matrix is a set of numbers arranged in rows and columns format. In python, a matrix can not be created directly. Instead, we can use a nested list or NumPy array as a matrix. The interchanging of first and last row elements of a matrix is demonstrated below. Input Output Scenarios Assume we have a 3X3 matrix represented using a nested list. and output matrix will be the resultant matrix whose first and last row elements are interchanged. Input matrix: [1, 2, 3] [4, 5, 6] [7, 8, 9] Output matrix: [7, 8, 9] [4, 5, ... Read More

402 Views
Object Compression in Java Java objects can be stored and transmitted more easily by using a method called Java Object Compression to shrink their size. The object will be compressed using a variety of classes and methods during this process, which can greatly decrease the size of the data. The complete amount of information can be retrieved by the recipient by decompressing the compressed object after it has been sent. When dealing with scarce resources, such as network bandwidth or disc space, this method can be helpful. In this article, we will learn more about Java object compression. What ... Read More

2K+ Views
NotSerializableException in Java In Java programming, the NotSerializableException is a common exception that occurs when an object of a class is not Serializable. When an object is not Serializable, it means that the object cannot be converted into a sequence of bytes, which is required for data persistence and communication between software components. The NotSerializableException can be thrown either by the serialization runtime or by the object instance itself. This exception is a subclass of ObjectStreamException, which is the superclass for all exceptions related to Object Stream classes. ObjectStreamException extends IOException, indicating that an I/O exception has occurred. Since serialization ... Read More

2K+ Views
The constants and variables are used to store data values in programming. A variable generally refers to a value that can change over time. Whereas, a constant is a type of variable whose value cannot be changed during a program’s execution. There are only six built-in constants available in Python which are False, True, None, Not Implemented, Ellipsis( ...), and __debug__. Other than these constants, python does not have any built-in data type to store the constant values. Example A sample example of a constant is demonstrated below − False = 100 Output SyntaxError: cannot assign to False ... Read More

303 Views
Introduction to New Features of Java 12 On March 19, 2019, Java 12 was made available. Several new and enhanced features included in Java 12's release make it a worthwhile upgrade over Java 11 in almost every way. Switch Expressions, Default CDS Archives, Shenandoah, and Microbenchmark Suite are a few of the Java 12 features that deserve special mention. To increase Java's productivity, usability, and versatility for coders, these features have been added. We'll talk in-depth about these new capabilities in this article. Switch Expressions (JEP 325) Something interesting to point out is that Java 12 has brought about a ... Read More

2K+ Views
Concurrent Collections in Java Java is a well-known computer language that supports concurrency and multithreading. Developers can use the synchronization keyword to guarantee correct synchronization between threads. Additionally, a variety of collections that can be used to hold and manipulate data are offered by Java's collection framework. The synchronized keyword can be used by coders to make these collections thread-safe. The efficient and secure execution of programs involving numerous threads operating concurrently depends on this capability. What Is the Need of Concurrent Collections in Java? ArrayList, LinkedList, HashSet, HashMap, and LinkedHashMap are just a few of the classes in Java's ... Read More