We can have nested try catch blocks in which we have try block within a try blockI. Few things t ... Read More
We know all methods in an Interface are public and abstract by default.So if have a Interface ``` ... Read More
e.printStackTrace() prints the whole stacktrace i.e at which line error occured,what message was di ... Read More
* We have seen in previous example if we use Paths.get(.) to print absolute path of current direct ... Read More
We have already seen the Or operator in previous post ``` System.out.println("Harry".replace ... Read More
* They are purely abstract classes.So no function can have defination in an interface.Interfaces con ... Read More
Visa card validation must start with a 4 then 12 digits between 0-9.this one is for a 13 digit visa ... Read More
We can use the .clear method on a List,Map or Set in java to delete all elements from the correspond ... Read More
Checked exceptions need to be catch otherwise the program won’t compile. Like I/O operations throw c ... Read More
If we call toString method on any object in java and print the results to the console it will print ... Read More