Which lines of code are valid declarations of a native method when occurring within the declaration of the following class?() public class Qf575 { // insert declaration of a native method here }
- A、native public void setTemperature(int kelvin);
- B、private native void setTemperature(int kelvin);
- C、protected int native getTemperature();
- D、public abstract native void setTemperature(int kelvin);
- E、native int setTemperature(int kelvin) {}
正确答案:A,B
答案解析:有

微信扫一扫手机做题