YES
yes it can but the thing is you must not to give class A is public modifier because file can save with the name of public class only after compilation it will will two files for each class A and class B and class B must be declared as public