Oracle 1Z0-808 Exam question no. 72

Q.– Given the code fragment: 

public static void main(String[] args) { 
         String str = ""; 
         str.trim(); 
         System.out.println(str.equals(" ") + " “ + str.isEmpty());


What is the result? 

A) true false 

B) false true 

C) true true 

D) false false 


⧪ please give your answer in a comment section.

Post a Comment

2 Comments