Given the following code:
```
class A {
public static void printMessage() {
System.out.println("Hi from A");
}
}
class B extends A {
public static void printMessage() {
System.out.println("Hi from B");
}
}
```
What will be the output when the following code is executed?
```
B obj = new B();
obj.printMessage();
```