Professional Documents
Culture Documents
fundamental
5. The trim( ) method is used to trim a string by removing Spaces Knowledge
_____________ from both sides.
6. The equivalent operator for concat( ) method is _____. + Knowledge
7. To combine firstname and lastname in an application a Concat() Knowledge
programmer should use _______ method.
8. If str1=”Happy”, str2=”Sunday”, then the output of HappySunday Skill Based
str1.concat(str2) is ___________.
9. Concat() method can also be replaced by __________ + Knowledge
operator.
10. toLowerCase() method has ____ argumaents. No Knowledge
11. If String F1=”I#N#T#E#G#R” then int l=F1.length() will 11 Skill Based
result as
12. If float n=1456.75f, then Math.round(n) will give the 1457 Skill Based
output as ________ value.
13. trim() method belongs to _________ class. String Knowledge
14. The ____ method is used to extract specified number of Substring Knowledge
characters from a string.
15. The String class belongs to __________ package. java. lang Knowledge