- This week decide to do a explanation of why picking Files.newOutputStream instead of FileOutputStream. The syntax is nearly identical, however performance won’t be the same. Different would be list below, following are the syntax of both method. As some of you guys may claver enough to spot the different. Which is OutputStream is assigned … Continue reading Why FileInputStream bad?
Legit way of writing JSP?
Best practice of JSP app? This is the question been asking my self for a month. As my new job mainly serve and maintain Java-based system in-house and no wonder JSP is used for our online system especially those page which is customer facing. It raise the tons of question mark. Yes I still learning, mostly … Continue reading Legit way of writing JSP?
A new way that u never thought of?
XML parser - Several parser come along with Java SE lib, which one is your favourite? This time I got told to implement a Java class which take xml file as input then extract selected info, such as Topic / Content / Time stamp…… and packed it as text file for further process. It sound … Continue reading A new way that u never thought of?
How docker help developer?
The topic pretty much explain itself. Mainly cuz I dun understand how it become just a trendy topic on Dev group. People keep talking about it day by day by day till forever…… Just a coincidence having a short period of free time for me dig upper into this topic in recent week. How you … Continue reading How docker help developer?
Try with resources or not?
Yup finally I settled down with a company or a job more precisely? A financial company which mainly handle stock transaction. Of course I have far more to learn in the near future and new challenge come every day. Unlike the last one, I feel alive which work with tenanted colleague and work closely with … Continue reading Try with resources or not?
Thread join && Sleep
Today's topic more on concurrent package. Which kick in from Java 1.5 if I m not mistaken. Have a peek with following class first. It's a class with interface . On the override method , simply print out the array "Demo_words" in a for loop and put thread into sleep for 2s after every print … Continue reading Thread join && Sleep
Property class
Properties class, it almost my favour class when building my own side project. It come into handy because Java help dev to store information in a file with pre-defined format. Which mean not need to write method(handler) for fetch && save data by ourself. In order to retrieve information from file, you need "FileInputeStream" with … Continue reading Property class