Professional Documents
Culture Documents
Ajay Chaudhary Classes Being Brilliant:-: Class 10 Computer Test (Strings)
Ajay Chaudhary Classes Being Brilliant:-: Class 10 Computer Test (Strings)
Ltd
6. State the data type and value of res after the following is executed : [2]
char ch = ‘t’;
res = Character.toUpperCase(ch);
int x= Integer.parseInt(A);
int y=Integer.parseInt(B);
int d=x+y;
System.out.println("Result 2="+d);
8. What is the difference between the Scanner class functions next() and nextLine()? [2]