Question : You have been given following three classes as below.'
A.java
public class A { public void a(){} int a; }
B.java
public class A { public void a(){} int a; }
C.java import java.io.*; package p1;
class A { public void main(String filename) throws IOException {} }
Which of the follwing statement is true, with regards to above code.
1. Only the A.Java file compiles successfully. 2. Only the B.java file compiles successfully 3. Access Mostly Uused Products by 50000+ Subscribers 4. The A.Java and B.java files compile successfully 5. The B.java and C.java files compile successfully.
A. Requirements 1, 2, and 3 can be implemented by using the enhanced for loop. B. Requirements 1, 2, and 3 can be implemented by using the standard for loop. C. Requirements 2 and 3 CANNOT be implemented by using the standard for loop. D. Requirement 1 can be implemented by using the enhanced for loop. E. Requirement 3 CANNOT be implemented by using either the enhanced for loop or the standard for loop.