0

I am taking a Java EE Servlets course and had a question about what "object-value attributes" are? I have never heard that term before.

1 Answer 1

1

Object Value attributes are nothing but, the attributes that are used in a POJO class.

public class Employee{
   private Integer employeeId;
   private String employeeName;

   //standard getters and setters
}

Here the employeeId and employeeName can be considered as object value attributes.

So now when we try to use any of the attributes from this:

Employee e = new Employee();
e.setEmployeeId(1234);
Integer objectValueAttribute = e.getEmployeeId();
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.