搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【多选题】

Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo( )method, which two statements are true?()

A、The class implements java.lang.Comparable.

B、The class implements java.util.Comparator.

C、The interface used to implement sorting allows this class to define only one sort sequence.

D、The interface used to implement sorting allows this class to define many different sort sequences.

更多“Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo( )method, which two statements are true?()”相关的问题
第1题

A、The class implements java.lang.Comparable.  B、The class implements java.util.Comparator.  C、The interface used to implement sorting allows this class to define only one sort sequence.  D、The interface used to implement sorting allows this class to define many different sort sequences.  

点击查看答案
第2题

A、The class implements java.lang.Comparable.  B、The class implements java.util.Comparator.  C、The interface used to implement sorting allows this class to define only one sort sequence.  D、The interface used to implement sorting allows this class to define many different sort sequences.  

点击查看答案
第3题

Aany class  B、only the Target class  C、any class in the test package  D、any class that extends Target  

点击查看答案
第4题

A、It can be any class.  B、No class has access to base.  C、The class must belong to the geometry package.  D、The class must be a subclass of the class Hypotenuse.  

点击查看答案
第5题

A、Compilation succeeds.  B、Exactly one class does NOT compile.  C、Exactly two classes do NOT compile.  D、Exactly four classes do NOT compile.  E、Exactly three classes do NOT compile.  

点击查看答案
第6题

AA.Point p = new Point();  B、B.Line.Point p = new Line.Point();  C、C.The Point class cannot be instatiated at line 15.  D、D.Line l = new Line() ; l.Point p = new l.Point();  

点击查看答案
第7题

AA user whose role is Admin can perform a PUT.  B、A user whose role is Admin can perform a GET.  C、A user whose role is Admin can perform a POST.  D、A user whose role is Member can perform a PUT.  E、A user whose role is Member can perform a POST.  F、A user whose role is Member can perform a GET.  

点击查看答案
第8题

A、public class MinMax<?> {  B、public class MinMax<? extends Number> {  C、public class MinMax<N extends Object> {  D、public class MinMax<N extends Number> {  E、public class MinMax<? extends Object> {  F、public class MinMax<N extends Integer> {  

点击查看答案
第9题

AA.public class Circle implements Shape {private int radius;}  B、B.public abstract class Circle extends Shape {private int radius;}  C、C.public class Circle extends Shape {private int radius;public void draw();}  D、D.public abstract class Circle implements Shape { private int radius;public void draw();}  E、E.public class Circle extends Shape {private int radius;public void draw() {/* code here*/}}  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服