Java : JAVA Library Classes

Which among the following expression will return a random integer between 5 and 10 both inclusive? , Which among the following expression will return a random integer between 5 and 10 both inclusive?

Which among the following expression will return a random integer between 5 and 10 both inclusive?




Solution
A. 5+(int)(Math.random()*6)



CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad