Which will declare a method that forces a subclass to implement it? A. public double methoda(); B. static void methoda(double d1) {} C. public native double methoda(); D. abstract public void methoda(); E. protected void methoda(double d1){}
Answer: D
Given: 1. public interface Foo { 2. int k = 4: 3. } Which three are equivalent to line 2? (Choose three) H. final int k = 4: I. public int k = 4; J. static int k = 4; K. private int k = 4: L. abstract int k = 4; M. volatile int k = 4: N. transient int k = 4;
Answer: A, B, C
Given: 1. public interface Foo { 2. int k = 4: 3. } Which three are equivalent to line 2? (Choose three) A. final int k = 4: B. public int k = 4; C. static int k = 4; D. private int k = 4: E. abstract int k = 4; F. volatile int k = 4: G. transient int k = 4;
Answer: A, B, C
Which will declare a method that is available to all members of the same package and can be referenced without any class? A. abstract public void methoda(); B. public abstract double methoda(); C. static void methoda(double d1) {} D. public native double methoda() {} E. protected void methoda(double d1) {}
Answer: C
Public abstract class A extends B, C implements D, E { } What is wrong with the above class declaration?
public abstract class A extends B, C implements D, E { } What is wrong with the above class declaration? Choice 1 Public classes cannot implement interfaces. Choice 2 Classes can only inherit from other
Which design pattern is represented by the EJB Home interface? A. Proxy B. Visitor C. Façade D. Abstract Factory
Answer: D
Skill/Topic: Memory, Abstract Data Types, and AddressesA) Integer, Floating-Type, Character & Boolean are the four different data type groupsExplanation: You determine the amount of memory to reserve by
Nse it papers NSEIT Campus Paper1) Then, difference b/w char *str = "Hello"; char arr[] = "Hello"; he started asking whether following statements get complied or not; arr++; // ERROR..its like a pointer constant *(arr + 1) = 's'; cout
View page << Previous 8 9 10 11 [12] 13 Next >>

Go Top