Thanks Mayur for your answer.
Another method is
String text = driver.findElement(By.cssSelector("div.col-md-8.profile-info")).getText();
System.out.println(text);
where div.col-md-.profileinfo is the div of the class containing the paragraph tag.
regards
Uday