varsha simla wrote:i want to know the difference between reverse proxy and forward proxy when coding in java.
It's exactly the same as the difference when coding in any other language. In other words, a reverse proxy is a reverse proxy no matter what language it's written in, and likewise a forward proxy is a forward proxy no matter what language it's written in.
got an assignment to implement a reverse proxy in java but what should be the first steps
The very first step should be to find out what a reverse proxy does. Subsequent steps would involve figuring out how to do that with Java code, and writing that Java code.