how to get token oauth2.0 java example response

Java
{
  "access_token" : "4484e52dc4744374aced826a4543cd28948816ff",
  "token_type" : "Bearer",
  "expires_in" : 1295999
}
Source

Also in Java: