# Grouping search terms

You can group multiple search terms together using parentheses (`(` and `)`).
For example:

    (hello OR world) AND lang:java

You can also nest multiple groups. For example:

    ((Strings OR StringBuilder) AND lang:java) OR (std AND lang:cpp)

For more information see [Additional syntax options](https://developers.google.com/code-search/reference#syntax-options)
in the reference documentation.