下面哪个方法不是Object类中定义的方法?( )
A: public boolean equals(Object obj)
B: public int compareTo()
C: public String toString()
D: public int hashCode()
A: public boolean equals(Object obj)
B: public int compareTo()
C: public String toString()
D: public int hashCode()
举一反三
- 下面哪个方法不是Object类中定义的( )。 A: public boolean equals() B: public String toString() C: public int compareTo() D: public int hashCode()
- Which method will complete this class?() A: public int compareTo(Object o){/* more code here */} B: public int compareTo(Score other){/* more code here */} C: public int compare(Score s1, Score s2){/* more code here */} D: public int compare(Object o1, Object o2){/* more code here */}
- 下面的哪一个方法,不是Object类的方法 A: toString() B: hashCode() C: compareTo() D: equals()
- 10 自定义实现BaseAdapter必须实现下面那些接口?() A: public int getCount() B: public Object getItem(int position) C: public Object getItem(int position) D: public View getView(int position,View convertView,ViewGroup parent)
- 8 自定义实现BaseAdapter必须实现下面那些接口?() A: public int getCount() B: public Object getItem(int position) C: public Object getItemId(int position) D: public View getView(int position,View convertView,ViewGroup parent)