Question
If a program crashes with a "NullPointerException" (or
similar null reference error), what is the most likely cause?Solution
A NullPointerException occurs when a program tries to use an object reference that currently points to null (meaning no object) as if it were a valid object. This typically happens when trying to call a method on a null reference or access a field of a null reference.
Three numbers x, y, and z are co-prime to each other such that xy = 91 and yz = 154. Find the value of (x + y + z).
Find the difference between sum of digits of LCM and HCF of 36, 84 and 132.
If the sum of 2 numbers is 185, their LCM is 1700 and HCF is 5. Then the difference between 2 numbers is:
The LCM of two numbers is 1800 while their HCF is 36. If one of the numbers is 432, then the other number is:
Find the HCF of 244 and 118.
Find the HCF (GCD) of 48 and 72.
Let N be the greatest number that will divide 85, 112, 139 leaving the same remainder in each case. Then sum of the digits in N is:
The LCM and the HCF of the numbers 25 and 50 are in the ratio:
Let N be the greatest number that will divide 85, 116, 147 leaving the same remainder in each case. Then sum of the digits in N is:
The HCF and LCM of two numbers, A and B, are 9 and 162, respectively. The difference between these two numbers is 27. Find their sum.