What is an Iterator interface?
Answers were Sorted based on User's Feedback
Iterator provides a general purpose standardised way of
accessing elements one at a time.It has 3 methods
next()
hasNext()
remove()
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
Iterator interface deefines the iterator method to traverse
threw the elements of a collecion unidirectionally
| Is This Answer Correct ? | 0 Yes | 1 No |
when to use abstract class and when to use interface?
16 Answers Exterro, iGate, IonIdea,
What is an class?
Write a function to find out longest palindrome in a given string?
Explain about version control?
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.
Can substring create new object?
What is an object's lock and which object's have locks in java programming?
Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them 2)Explain mechanism of Hashcode finding in Java 3)Name some of the Sorted collection.
What is the method overriding?
What do you understand by the term singleton?
Explain java coding standards for classes or java coding conventions for classes?
Write the program numbers into words.For example 2345==two thousand three hundred fourty five