-
Java instanceof
Java instanceof In Java, instanceof is a keyword used for checking if a reference variable contains a given type of object reference or not(class or subclass or interface).It is known as a comparison operator where the instance is getting compared to type returning boolean true or false as in Java we do not have 0 and 1…
-
Matrix
In Mathematics, matrix is a 2-dimensional rectangular array which is filled either with numbers or symbols or expressions as its elements & has a row and column 1) Java Program for Matrix Addition,Subtraction & Multiplication :
-
Factorial
There are different ways to calculate factorial of number in Java. Following four programs illustrate Java program to calculate factorial of number using loop, iteration, recursion & ternary operator. 1) Simple Java program to calculate Factorial of a number using loop : 2) Java program to calculate Factorial of a number using Iteration : 3)…
-
Armstrong Number
Armstrong Number is a number that equals to the sum of its digits, each raised to a power. Armstrong number was discovered by mathematician Michael Frederick Armstrong (1941-2020) and is also known as narcissistic or Plus Perfect or pluperfect number. Armstrong numbers form the OEIS sequence A005188. Example : For one-digit : 1: 1^1 = 12: 2^1 = 23: 3^1 = 3 So,1,2 & 3 are one-digit Armstrong Number…
accessmodifier (1) Access Modifiers (1) android (2) android architecture (1) armstrong (1) armstrongnumber (1) binding (1) camelcase (1) default (1) factorial (1) factorialnumber (1) factorialofnumber (1) fibonacci (1) fibonacciseries (1) final (1) final keyword (1) garbage (1) garbage collector (1) inheritance (1) instanceof (1) iteration (1) iterative (1) java (17) Java Access Modifiers (1) java binding (1) javacamelcase (1) Java Encapsulation (1) java final (1) java garbage (1) java garbage collector (1) java inheritance (1) javainstanceof (1) java keyword (4) javakeyword (2) javakeywords (2) javamethod (1) java multithreading (1) javanamingconvention (1) java oops (2) java polymorphism (1) javaprogram (6) javaprogramming (6) javareservedword (1) javareservedwords (1) java static (1) java this (1) java threading (1) kernel (1) keyword (5) loop (2) matrices (1) matrix (1) matrixaddition (1) matrixmultiplication (1) matrixprogram (1) matrixsubstraction (1) method (1) multithreading (1) nameconvention (1) namingconvention (1) oops (2) palindrome (1) palindromenumber (1) palindromestring (1) polymorphism (1) primenumber (1) private (1) protected (1) public (1) recursion (2) reservedword (1) static (1) static keyword (1) ternary (1) ternaryoperator (1) this (1) this keyword (1) threading (1)