1. Given the following code fragment:
String num = “123”;
Character c = ‘p’;
int num1 = Integer.parseInt(num);
String str = c.toString();
one of the following statements holds…
- the initialization of variable str triggers a syntaxerror.
- the initialization of variable num1 triggers a syntaxerror.
- toString is a static method of class Character that copies astring value into a new string.
- parseInt is a static method of class Integer that parses anumeric string into an integer value
2. The “correctness” core quality of software refers tothe fact that …
- programs efficiently support the insertion of new features,improvements, corrections
- programs answer to requested user actions within acceptabletime delays.
- programs compile without any syntax
OROR