KeyGenerator has several init() methods; you must call one of them before generating the key. The Javadoc for KeyGenerator indicates that in case you do not call one of the init() methods, then "each provider must provide (and the document) default initialization."
So it depends on the provider. Since you initialize the key generator using the name of the AES algorithm, it can be assumed that you will get a key with a size suitable for AES, that is 128, 192 or 256 bits (16, 24 and 32 bytes, respectively). But the one you get depends on the actual provider, which may depend on the JVM and possibly on its configuration.
Thomas pornin
source share