Java Program to Perform Addition Operation using Bitwise Operators

This is the java program to perform addition of two numbers without using any arithmetic operators. The summation of two numbers can be obtained using XOR operation and carry can be obtained using AND performed at bit level. Here is the source code of the Java Program to Perform Addition Operation Using Bit-wise Operators. The … Read more

advertisement

Java Program to Find Inverse of a Matrix

This is the java program to find the inverse of square invertible matrix. The matrix is invertible if its determinant is non zero. Here is the source code of the Java Program to Find Inverse of a Matrix. The Java program is successfully compiled and run on a Windows system. The program output is also … Read more

advertisement

Java Program to Check if a Matrix is Invertible

This is the java program to check whether the matrix is invertible or not. The square matrix is invertible if and only if its determinant is non zero. Here is the source code of the Java Program to Check if a Matrix is Invertible. The Java program is successfully compiled and run on a Windows … Read more

advertisement

Java Program to Check the Multiplicability of Two Matrices

This is the java program to check the multiplication of the two matrices. Two matrices are multiplicable if and only if the number of rows of the left hand side matrix is equal to the number of columns of the right hand side matrix. Here is the source code of the Java Program to Check … Read more

advertisement

Java Program to Check if it is a Sparse Matrix

This is the java program to find out a given matrix is sparse matrix or not. Sparse matrix contains zero elements above a certain threshold. This threshold is given by (n*m)/2, where n and m are the rows and columns in matrix. Hence, if a matrix contains more than nm/2 mumber of zeros it is … Read more

advertisement

Java Program to Implement RoleUnresolvedList API

This Java program Implements RoleUnresolved API.A RoleUnresolvedList represents a list of RoleUnresolved objects, representing roles not retrieved from a relation due to a problem encountered when trying to access (read or write) the roles. Here is the source code of the Java Program to Implement RoleUnresolved API.The Java program is successfully compiled and run on … Read more

advertisement

Java Program to Implement RoleList API

This Java program Implements RoleList API.A RoleList represents a list of roles (Role objects). It is used as parameter when creating a relation, and when trying to set several roles in a relation (via ‘setRoles()’ method). It is returned as part of a RoleResult, to provide roles successfully retrieved. Here is the source code of … Read more

advertisement

Java Program to Implement AttributeList API

This Java program Implements AttributeList API.Represents a list of values for attributes of an MBean. Here is the source code of the Java Program to Implement AttributeList API.The Java program is successfully compiled and run on a Linux system. The program output is also shown below. import java.util.Collection;import java.util.List;import javax.management.Attribute;import javax.management.AttributeList; public class AttributeListImpl{ private AttributeList … Read more

advertisement

Java Program to Implement Vector API

This Java program Implements Vector API.The Vector class implements a growable array of objects. Like an array, it contains components that can be accessed using an integer index. However, the size of a Vector can grow or shrink as needed to accommodate adding and removing items after the Vector has been created. Here is the … Read more

advertisement

Java Program to Implement CopyOnWriteArraySet API

This Java program Implements CopyOnWriteArraySet API.A Set which is best suited for applications in which set sizes generally stay small, read-only operations vastly outnumber mutative operations, and you need to prevent interference among threads during traversal.It is thread-safe.Mutative operations (add, set, remove, etc.) are expensive since they usually entail copying the entire underlying array.Iterators do … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.