I have two fragments classes say A and B and one mainactivity class.I looked some tutorials and have added recycler view(this is not the main concern though).Following up the tutorial on my both fragment classes i have this code
@Nullable
@Override
public View onCreateView (LayoutInflater inflater, @Nullable
ViewGroup container, @Nullable Bundle savedInstanceState){
View rootView = inflater.inflate(R.layout.absent, container, false);
return rootView;
}
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
}
so what is the use of @Nullable
here?.i have searched this many times but i can't understand it's use and even that tutorial haven't mentioned anything about @nullabe
.Can anyone make me understand about this?
please don't bother in talking about recycler view because i have already added it.