
interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { String empcode; String password; public void validate(String code,String pass) { this.empcode=code; this.password=pass;
} public static void main(String a1[]) { updateInfo o= new updateInfo(); o.validate("1111","roseindia"); System.out.println("Information updated");
will the above code check if the user has entered value for empcode and password variables.Explain the code
} }
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.