1
Will this code compile?
class Town {
private String name = "Kharkiv";
void doJob() {
String country = "Ukraine";
class Street{
public void watchTown() {
System.out.println("Town name is " + name);
System.out.println("Country is " + country);
}
}
}
}
Please log in or register to have a possibility to add comment.