how to search the pertical objects in a Collections
Answers were Sorted based on User's Feedback
Answer / manas
corrected of #1 ans:
ArrayList a1=new ArrayList();
a1.add("shiva");
Object e[]=a1.toArray();
for(int i=0;i<a1.size();i++)
{
if(e[i].equals("inputstring");
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / siva thimmannagari
ArrayList a1=new ArrayList();
a1.add("shiva");
Object e[]=a1.toArray();
for(int i=0;i<a1.size();i++0
{
if(e[0].equals("inputstring");
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Do we need to override service() method
What are different types of controls in AWT?
Name three subclasses of the component class?
What is private static final long serialVersionUID = 1L;
Can you write Java code for declaration of multiple inheritance in Java ?
What is clustering? What are the different algorithms used for clustering?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
What is the difference between Process and Threads?
what is Activation Instantinator?
Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.
Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)