10 solutions available
Question 1(i)Return data type of isLetter(char) is ............... .Booleanbooleanboolchar
Question 1(ii)Method that converts a character to uppercase is ............... .toUpper()ToUpperCase()toUppercase()toUpperCase(char)
Question 1(iii)Give output of the following String methods:"SUCESS".indexOf('S') + "SUCCESS".lastIndexOf('S')056-5
Question 1(iv)Corresponding wrapper class of float data type is ............... .FLOATfloatFloatFloating
Question 1(v)............... class is used to convert a primitive data type to its corresponding object.StringWrapperSystemMath
Question 1(vi)Give the output of the following code:System.out.println("Good".concat("Day"));GoodDayGood DayGooddaygoodDay
Question 1(vii)A single dimensional array contains N elements. What will be the last subscript?NN - 1N - 2N + 1
Question 1(viii)The access modifier that gives least accessibility is:privatepublicprotectedpackage
Question 1(ix)Give the output of the following code :String A = "56.0", B = "94.0"; double C = Double.parseDouble(A); double D =...
Question 1(x)What will be the output of the following code?System.out.println("Lucknow".substring(0,4));LucknowLucknLuckluck