Chandrasekaran SanthanaKrishnan wrote:anirudh jagithyala,
I did that exactly as you have said.
Its not working.
'Not working' is a poor error description. What didn't work? Did you get an error message? Which? How did you experience that it didn't work? What result did you expect, what did you get?
Note, that you just use one form, and it's the second:
Backticks are deprecated (Ommm, Ommm) because you can't nest them easily. Since classes should wear uppercase initials, you call `java Test`, not `java test`.
Note too, that the initial code was wrong in multiple ways:
* should be public
* named with capital T
* main method is empty - so nothing happens
* sample-method returns a String, but does no output.