Is it possible define method with in a method ?

for eg:

int dis(int a)
{
String d ;

float foo() {

}
}