Hi Dinesh,
The moderators here are really trying to help you! When Ben asks you to write your own code to
test this question it's because that is ABSOLUTELY the best way for you to learn this stuff
It seems that you're not comfortable writing your own
Java programs to test stuff out. You really have to make a shift and get used to compiling and running code from the command line. Everyone who scores well on these exams studies by writing and testing a lot of code. The compiler and the JVM are your friends, and compiler errors are your friends too!
We will be thrilled to see you post some code and some error messages and ask what's going on!
hth,
Bert