I have looked around on StackOverflow to find the answer for the problem I am facing. I came across many good answers but still it doesn\'t answer my question.
Get t
Bar bar = new Bar();
Method mRead = bar.getClass().getMethod( "getObject", null );
TypeToken> tt = new TypeToken>() {};
Invokable, Object> inv = tt.method( mRead );
System.out.println( inv.getReturnType() ); // Test$Foo
Maybe this is what you are searching for. TypeToken and Invokable are from Google Guava.
€: Fixed the code with respect to the comment of @PaulBellora