Because your constructor is never invoked in the above code. To invoke your constructor, you need
new DaoClass()
somewhere.
Note that initializing statis fields from a constructor or instance method is bad design. static fields belong to the class. A constructor is invoked each time an instance of this class is created. There is no reason to reinitialize a static field each time a constructor is called.
Read http://docs.oracle.com/javase/tutorial/java/javaOO/classvars.html for a better understanding of static fields and methods.