Inspector Javery is A policeman who bears an uncanny resemblance to a wolf. Javert obeys the letter of the law and gives no mercy to offenders. Javert is so obsessed with enforcing society’s laws and morals that he does not realize he is living by mistaken assumptions—a tragic and ironic flaw in a man who believes so strongly in enforcing what he believes is right. As a character, he is static and relatively flat in that he is capable of thinking from only one perspective. He also is unable to cope with change especially where his personal values are concerned. He is neither good nor evil; he is simply the embodiment of the law, an entity that never questions itself and that proceeds to enact its own precepts without concern for its victims. His pursuit of Valjean is as close as he comes to making a vendetta personal, for to him Valjean represents an element which lives outside the law, and although little or no crime is committed, there is a lack of control which Javert sees as a threat to the guiding principle of his life.
In the story he serves as Jean Valjean's nemesis. First as an inspector in Montreuil-sur-mer he suspects Father Madeleine of being a former convict and eventually arrests him. When Valjean finally gives Javert irrefutable proof that a man is not necessarily evil just because the law says he is, Javert is incapable of reconciling this new knowledge with his beliefs.He ends his own life by jumping into the river.
I really dislike Javert. People like that don’t learn lessons. Knock them down and they will just come back with more friends or bigger weapons and push harder. That is the why Javert never learned to see the other side of the coin. When Jean Valjean spares his life, he can not cope and kills himself.