Question 3
Consider the following Java code.
class User { private String username; private String password; public User(String u, String p) { assert u != null; // assert-1 assert p != null; // assert-2 username = u; password = p; } public boolean login() { assert !username.isEmpty(); // assert-3 assert password.length() >= 6; // assert-4 return username.equals("admin") && password.equals("admin123"); }}public class AssertTest { public static void main(String[] args) { User user = new User("admin", ""); System.out.println("Login status: " + user.login()); }}Identify the first assert statement that throws the AssertionError when the class is executed as: java -ea AssertTest