Question:Which three are valid method signatures in an interface? 1. private int getArea(); 2. public float getVol(float x); 3. public void main(String [] args); 4. public static void main(String [] args); 5. boolean setFlag(Boolean [] test); 

A 1 and 2 

B 2, 3 and 5 

C 3, 4, and 5 

D 2 and 4 

+ Answer
+ Report
Total Preview: 2101

Copyright © 2024. Powered by Intellect Software Ltd