Code:
find . -type f -name "*.java" -exec grep -l StringBuffer {} \;