Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
-D parameters are also called as the System
Parameters. "System Parameters" are really
useful especially in Real-Time projects, where it
requires you to input some parameters
to your App whose
values could vary from one JVM to JVM (Env to ENV)
dynamically,
e.g. "PropertyFile
Names" , that could be varied from one ENV to another
because the DEV
property file should not be used for
Prod Environment.
Here are some
additional cases in which we use these, most of these are related
to
application "Configuration" such as
“Property File Names” or
“paths” or “Hibernate Config file
path”
or some special “Lib
paths” or Memory Settings, all of these could be varied
based on ENVs.
This is how to set
these parameters:
-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties
Read
this as following in your App :
System.getParamter
(“java.util.logging.config.file”);
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.