Development
© examsiri.com
Question : 8 of 17
Marks:
+1,
-0
Given these classes in different files:
Which statements are true? (Choose all that apply.)
package xcom;
public class Useful {
  int increment(int x) { return ++x; }
}
import xcom.*; /* line 1*/
class Needy3 {
  public static void main(String[] args) {
   xcom.Useful u = new xcom.Useful(); /* line 2*/
   System.out.println(u.increment(5));
  }
}Which statements are true? (Choose all that apply.)
Go to Question: