I just switched from Xamarin/C# to Android Studio/Java and am familiarizing myself with the dissimilarities between the two languages. I'm reading an android book written in java and came across the following two lines of code:
int screenSize = getResources().getConfiguration().screenLayout &
NullPointerException, unless the method you are calling it is using it as an output
&&is the boolean operator and
&is the bitwise operator.
&is a bitwise AND, so for example
(0101) & (1110)would be
(0100). In your example, it is being used to zero out certain bits.