在类中声明变量然后在方法中初始化和直接在方法中初始化有什么区别吗
private AutoCompleteTextView autoCompleteTextView; autoCompleteTextView = (AutoCompleteTextView) findViewById(R.id.autoCompleteTextView);
AutoCompleteTextView autoCompleteTextView = (AutoCompleteTextView) findViewById(R.id.autoCompleteTextView);
求告知区别