Java Package

© examsiri.com
Question : 3 of 16
 
Marks: +1, -0
Given:
1. public void testIfA() {
2.   if (testIfB("True")) {
3.    System.out.println("True");
4.   } else {
5.    System.out.println("Not true");
6.   }
7. }
8. public Boolean testIfB(String str) {
9.   return Boolean.valueOf(str);
10. }

What is the result when method testIfA is invoked?
Go to Question: