• Post Reply Bookmark Topic Watch Topic
  • New Topic

need solution for Interview questions  RSS feed

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

1) Without entering the username and password and you are trying to access the next page
so what will happen? How the server will know the particular users login.

2) My arraylist only will allow class A,B,C how to acheive it generics ?

3) Set doesnot allow duplicates if i enter the code




now size is 2,so why it's allowing the duplicates? whether we need to implement comparator interface to solve this issue?

these are all my interview questions. please help me to know more about better.

Thanks,
Sridhar.R
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What were your answers? Post them here, and we'll comment on them.
 
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll also need to provide a lot more context for questions 1 and 2. At the moment they are unanswerable.
The answer to question 3 can be found in the javadoc for the Set interface.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!