Date handling in java

date java

Lets define a date in the form of a String ``` String ds = "15/03/2000"; ``` Then we use objec ... Read More

Debug prospective in java

debugging java

Debugging is different than running a program. Instead of running the entire program at once ,we deb ... Read More

Functions in jmeter - __javaScript

__javaScript jmeter

${__javaScript(new Date();)}--->Used to print current date ${__javaScript(2>7)}--->will give fals ... Read More

Differences between interfaces and abstract classes

abstract class interface java

And differences between abstract classes and interfaces are - * A child class can only extend one c ... Read More

String equality using == and .equals methods

Strings == equals java

String is a non mutable class i.e once we create an object of String class like we created in the e ... Read More

e.printStackTrace() vs e.Message() in Java

e.printStackTrace() e.Message() java

e.printStackTrace() prints the whole stacktrace i.e at which line error occured,what message was di ... Read More

To find if a file or directory exists uning java nio

To find if a file or directory exists uning java nio java

* One thing to note regarding Path class is ,it never knows if a path actually exists or not. * So ... Read More

Collection methods (compareTo,min,max,sort)

collection methods compareTo min max java

Collections have various inbuilt methods that are very powerfull like Collections.reverse , Collecti ... Read More

Checked vs unchecked exceptions in Java

checked exceptions unchecked exceptions java

Checked exceptions need to be catch otherwise the program won’t compile. Like I/O operations throw c ... Read More

Moving up and down file path using nio in java

Moving up and down file path using nio java

* We have seen in previous example if we use Paths.get(.) to print absolute path of current direct ... Read More