1: What is a string in Java?
2: Which class is used to create and manipulate strings in Java?
3: Which of the following is true about strings in Java?
4: Which operator is used to concatenate strings in Java?
5: Which method is used to find the length of a string in Java?
6: What does the charAt(index) method do in Java?
7: Which method is used to compare two strings lexicographically?
8: Which of the following methods is used to convert a string to lowercase in Java ?
9: What is the result of the expression "hello".substring(1, 4)?
10: Which of the following methods is used to check if a string starts with a specific prefix?
0 Comments