Question
What keyword is used in Java to manually bring in the
exceptions?Solution
Throw is used to throw or introduce exceptions, catch is used to catch the exception and handle it so that the program is prevented from failing.
A and B are travelling towards each other with a speed of 15 km/hr and 25 km/hr. They started at same time and A covered 20 km less distance than B befo...
- Neha takes 10 hours to travel a certain distance at a speed of 20 km/h. What should be her new speed to complete the same journey in 5 hours?
A cheetah can catch a deer running with a speed of 54 km/h and is 63 meters ahead of it, in 12 seconds. Find the time taken by the cheetah to catch a ze...
A man walks 4 km at a speed of 2 kmph, runs 6 km at a speed of 2 kmph and goes by bus another 32 km. Speed of the bus is 8 kmph. Find the average speed ...
The speed of two cars A and B are in the ratio of 10:13 respectively. Car A travels 18 km less than the car B in the same time duration. What was the di...
A man travels 45 km from town A to town B at a speed of 15 km/h. He returns from B to A by the same route at a speed of 9 km/h. What is his average spee...
A policeman saw a thief from a distance of 450 m. When the policeman started chasing him, the thief also started running. The ratio of speeds of the th...
- Bus 'X' and Bus 'Y' start together from a station heading in the same direction. Bus 'X' moves at 18 km/h while Bus 'Y' moves at 30 km/h. Determine the dis...
Car' A' travels at the speed of 65 km/hr and reaches its destination in 8 hours. Car 'B' travels at the speed of 70 km/hr and reaches its destination in...
A train was initially moving at 60 km/hr, then increased its speed by 15 km/hr after ‘z’ hours and continued for (z + 8) hours more. If the distance...