Strings (Part-2) in Java

Hash code() It is a method of String Class which is used to return the value of hash code of the instance of string. It is frequently used in Java and its return type…

Continue Reading Strings (Part-2) in Java

Strings (Part-1) in Java

Strings are the sequence of characters. Unlike primitive data types like int, float or Boolean, non-primitive data types are not defined by the language, but are constructed by the programmer. These data types refer…

Continue Reading Strings (Part-1) in Java

Nested Class in Java

Nested classes can be precisely defined as classes within a class, a member of an other class. Let’s discuss below with an example for clear understanding, class OuterClass { int abc; //Field as a…

Continue Reading Nested Class in Java

Enums in Java

Enums in java actually means grouping same kind of constants as a one unit/package. Constants which are static and final.Enums are added as feature from JDK 1.5 and above. Lets get an clear idea…

Continue Reading Enums in Java

Wrapper classes(Part-3) in Java

ValueOf() method In java, wrapper class has three kinds of methods for ValueOf() in which; Primitive type is taken as argumentString type is taken as argumentString and int type, both taken as argument at…

Continue Reading Wrapper classes(Part-3) in Java

Wrapper classes (Part-2) in Java

Remaining part of Wrapper class you can study from link:https://codingsmania.in/wrapper-classespart-1-in-java/ 4. Byte Class Methods Int CompareTo(Byte b): This method compares the value of Byte object with the value to ‘b’ argument and will return…

Continue Reading Wrapper classes (Part-2) in Java

Wrapper Classes(Part-1) in Java

There a eight primitive data types in java. These primitive types are dedicated to the classes which are called wrapper classes. As the name shows wrapper classes wraps the primitive data type. It uses…

Continue Reading Wrapper Classes(Part-1) in Java

JAVA 8

Java 8 is one of the Java versions that brought with it some new features that are considered as revolutionary for computer science and coders (developers) using this language. It is considered the major…

Continue Reading JAVA 8

Multi-Threading In Java

What is a Thread? A thread is a stream of control within a program that can be executed independently. Hence, a single process can be comprised of numerous threads. For instance, in a multithreaded…

Continue Reading Multi-Threading In Java

Collections in Java

Almost all programming languages have its own set of collections for making data storage more organized. Python has its own set of collections and C++ has its own STL library. Similarly, Java also has…

Continue Reading Collections in Java