packages in java

java package or a package in java, it is like a normal packets contains the different things together, same as java packages contains the different classes , interface, enumerations together in it. java package is a logical container where classes and interfaces lives.It is a namespace in java ,declared at the top of the program, […]

Read More

substring java

There are two variants of finding a substring in java provided in String class first method which takes single argument substring(int beginIndex) Returns a new string that is a substring of this string.method will return part of characters from index beginIndex to end or the string The second method which takes two argument substring(int beginIndex, […]

Read More

method overloading in java

A class with same name methods but with different method arguments are known as overloaded methods . Method Overloading allows us to re use the same method name in a class , but with different arguments. Method overloading have only two rules:1. method name should be same2. method parameter types or number of parameters should […]

Read More