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 |
How to call static method?
Is there memory leaks in java?
Can we synchronize static methods in java?
how are methods defined?
What is private static class in java?
Does constructor return any value?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is binary tree in java?
Write the program numbers into words.For example 2345==two thousand three hundred fourty five
printstream class method println() is calling using System class and its static object out .how it is explain any one in detail with example ?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
Explain different ways of passing arguments to sub-routine?