This question is actually one of two I have asked regarding Java, and I don't understand this syntax enough to understand what to ask, but here is something I see in coding:
HibernateUtil hibUtil = new HibernateUtil(ORDB_CFG, AS400_CFG);
I know where the class HibernateUtil is located.
What I don't understand is, why is it also specified before the var hibUtil in the expression? What is the different if I do or do not?
hibUtilof typeHibernateUtil, and assign to it (using=) a new instance object of typeHibernateUtilthat you instantiate it (usingnewkeyword) by invoking its constructor that takes 2 arguments.