abstract is an modifier used for a method or class.
2) Abstract method:
abstract modifier declared infront of a method declaration is called abstract method. Continue reading
|Location||Chennai Continue reading|
309) In how many ways we can perform operations on strings in java?
To perform and manipulate strings in java we have three different ways:
String class is introduced in JDK 1.0.
StringBuffer class is introduced in JDK 1.0.
StringBuilder class is introduced in JDK 5.0.
All the three classes are final classes.
All the three classes are subclasses of java.io.serializable interface. Continue reading
To generate random strings in java we have a RandomStringUtils class in StringUtils jar.Based on the number of characters specified and our requirements it generate random strings.
Here are some of the different overloaded methods of RandomStringUtils class which generates random Strings: Continue reading
A switch statement is useful when you need to select one of several alternatives based on the value of an integer, a character, or a String variable.
The purpose of a switch statement is to provide a convenient and simple method of making multi-branch selections based upon integer, enumeration, or String expression Continue reading
|Location||Banglore Continue reading|