@Ajit Sahane
That is not such easy. First you must get category hierarchy, i.e. using:
Category::newInstance()->toRootTree
or
Category::newInstance()->hierarchy
That will return array of all category IDs. Then for each ID you must get name using i.e.:
Category::newInstance()->findByPrimaryKey
GL!