The foum posts can rank for keywords much like any other page on a website.
My suggestion is to create a forum for your niche, not for SEO rankings.
Forums are meant to be enjoyed just like the WF is.
If you make your forum about being part of the community, the rankings and traffic should take care of itself.
This is the Official Forum of Navsingh a community that helps you find answers to all of your problems,they can be Java/programming,wordpress,android, android programming, seo related or technology related