What is a String in java ?

A string in java is a sequence of characters treated as a unit Strings in Java standard objects with built-in language support String – class for immutable (read-only) strings StringBuffer – class for mutable strings can be converted to other types like integers and booleans like other classes, String has constructors and methods unlike other … Read more

Scanner Class in java to get user input | java.util.Scanner

The Scanner class is part of the java.util class library. and it is used to get user input java.util.Scanner java.util.Scanner is a class in the Java API used to create a Scanner object, an extremely versatile object that you can use to input alphanumeric characters from several input sources and convert them to binary data. … Read more

Polymorphism in Java

Polymorphism in Java is a concept by which we can perform a single action in different ways. Polymorphism is derived from 2 Greek words: poly and morphs. The word “poly” means many and “morphs” means forms. So polymorphism means many forms. There are two types of polymorphism in Java compile–time polymorphism runtime polymorphism Compile-time polymorphism … Read more