Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
There are two possible solutions for this.
i) If you want to do this by using java.IO package , you
just need share the Folder and make sure that this file (the
folder from which you are reading
that file)is accessible to JVM.
ii) If not , you
want to do this by reading this file a resource, please do the
following.
a)
Add the file(Folder which contains the Folder) to the class path
and read using file API.
b)
Use getClassLoader()
method of "Class" to load the File as
a resource as shown below, this method looks for the file in
Classpath.
getClass().getClassLoader().getResource("Configuration.properties").getFile();
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.