Hey Priya, to check the state of a radio button or checkbox, you can use isSelected() method of Selenium Webdriver, which returns the boolean value as output. For eg.
boolean test = webdriver.findElement(By.xpath("checkbox/radio button XPath")).isSelected();