TestCase2 didn't pass

Sir, please tell me why it didn’t pass 2nd test case.

import java.util.*;
public class Main {
public static void main(String args[]) {

Scanner sc=new Scanner(System.in);
	int t=sc.nextInt();
	for(int j=0;j<t;j++) {
	String str1=sc.next();
	String str2=sc.next();
	char result[]=new char[str1.length()];
	for(int i=0;i<str1.length();i++) {
		if(str1.charAt(i)==str2.charAt(i))
			result[i]='0';
		else
			result[i]='1';
	}
	for(int i=0;i<result.length;i++)
		System.out.print(result[i]);
	}
	sc.close();
}

}

mutiple test cases are executing

so print every answer in new line

hope this will help u
pls rate my work so that i can improve myself.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.