I don't think those are the correct responses. I thought the first response was a 1?
Here is what I get when I execute the code with the above input with a 1 first:
Running: java -cp . I11007783

Press
1 - Enter new product
2 - Display all products
3 - Update And Delete product
4 - Exit >Return val=1
Please Enter name for product 0: >Return val=A
Please Enter quantity for product 0: >Return val=1
Please Enter Product_Price for product : 0: >Return val=25
Please Enter name for product 1: >Return val=3
java.lang.Exception: Invalid name:3
at I11007783.EnterNewProduct(I11007783.java:140)
at I11007783.main(I11007783.java:113)
msg1=Invalid name:3
Please Enter name for product 1: >Return val=B
Please Enter quantity for product 1: >Return val=2
Please Enter Product_Price for product : 1: >Return val=35
Please Enter name for product 2: >Return val=3
java.lang.Exception: Invalid name:3
at I11007783.EnterNewProduct(I11007783.java:140)
at I11007783.main(I11007783.java:113)
msg1=Invalid name:3
Please Enter name for product 2: >Return val=C
Please Enter quantity for product 2: >Return val=3
Please Enter Product_Price for product : 2: >Return val=40
Press
1 - Enter New Product
2 - Display All Products
3 - Update and Delete product
4 - Exit >Return val=5
msg1=Error Option:5

1 error(s)