
so in my constructor it has two objects as parameters and they are being assigned to variables. Do I need to check if they are null?

so in my constructor it has two objects as parameters and they are being assigned to variables. Do I need to check if they are null?
Simple initialization will not given null pointer exception ,it will give null pointer exception when you are to use that variable or trying to get some value from that variable which is actually null.
For ex:
String foo = null;
int length = foo.length(); // HERE