Chinni, It sounds like you aren't trying to write code then; just a logical test case. A test case is a list of steps for how to reproduce a scenario of using the application. The idea is to be as detailed as possible so someone can follow those instructions later. For example, provide all inputs and steps that you need to follow.
If your organization has a template, you can use that. If not, you can just use a list in Word or Excel.
Originally posted by Chinni Bujji: No I am not allowed to use any of those like junit or anything
just write normal test cases
Can you define "normal test case" for us? Are you talking about documenting a manually executed test case (why would you say "java test case" if this is the case?) or perhaps about writing executable unit tests without using third party libraries such as JUnit?