I am wondering if it's recommended always to use primitive types such as int when defining class attributes or should I wrapper classes instead of.
class Test{
private final int id;
/**
* Class constructor
* @param id
*/
Test(int id) {
this.id = id;
}
}