Dinesh take it positive from your failure and move on to next step. I guess many companies restrict you from 6 months to 1 year if you had appeared their interview process. Try to analyse what mistakes you did and how you can come out from those mistakes, take it as experience for next interview. There are lot of other good companies and try for them. If you are rejected means there might be lot of reasons for rejection and it is not just because you do not qualify. Remember every one will have their own skills, and some skills will be useful for a company and many not be useful for other company.
For next interview if you know there will be written test be prepare and write with confidence. Try to solve some
SCJP exams which will helpful not do mistakes in your next exam.
Wish you good luck
[ November 15, 2006: Message edited by: KJ Reddy ]