We can throw exception deliberately in java using the below line of code ``` throw new NullPo ... Read More
Method overloading * methods must have same name and different paramaters * They may or may not ... Read More
Pattern Matchers are used with String , String Buffers ,String Builders etc Matchers are used to ... Read More
Java is almost a purely object oriented language.But it is not 100 percent object oriented as langua ... Read More
* Packages are directories in our file system that contain set of related class files. * Package n ... Read More
Compostion should be preferred over inheritance and should be used if the classes don't have a paren ... Read More
* We know that File class can also return the path of a File.So why did java come up with Path cla ... Read More
If we just want to print the numbers in the below String we can create a group for those numbers. An ... Read More
We know we can iterate over a map in java like below.Here languages is a map ``` for(Strin ... Read More
LinkedList vs Arraylist If we look from outside we may not find much difference between Arraylist ... Read More