alert accept button

how to handle alert prompt dialog box using selenium webdriver ?

package SeleniumLearn.Com;

import org.testng.annotations.Test;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.BeforeTest;

Subscribe to RSS - alert accept button