Spring Framework in Java

What is Spring Framework in JavaThe one of the most popular frameworks for the purpose of application development in Java enterprise is Spring Framework. This development framework is employed by numerous application developer around…

Continue Reading Spring Framework in Java

Abstraction in Java

What is abstraction in javaAn abstraction is an act of representing essential features and hiding all background details.It is one of the concept of object-oriented programming.It can be achieved by abstract classes or interfaces.Abstract…

Continue Reading Abstraction in Java

Encapsulation in Java

Encapsulation in Java( features of oop ) is the wrapping of data and function into a single entity. It describes the idea of rolling data and methods that task on that data within one…

Continue Reading Encapsulation in Java

Polymorphism in Java

Polymorphism in java is the ability of an entity to take several forms or performing single action at different times. As it was named Poly means many and morph means one or more forms,…

Continue Reading Polymorphism in Java

Inheritance in Java

It is concept of Java where attributes and methods are inherited from super to sub-class.Let us first clear about super class and sub- class:Super class: The class which is being inherited.It is also referred…

Continue Reading Inheritance in Java

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

Generics in Java

Why we need Generics? Generics in java is a concept which allows the users to choose the reference type that a method, constructor of a class accepts. By the usage of generics, we can…

Continue Reading Generics 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

JDBC Java

JDBC stands for Java Database Connectivity. It is an application programming interface, API for short.To fully understand the functions of the JDBC, we must first delve into what an API actually is. API, or…

Continue Reading JDBC 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

Exception in Java

An exception is an issue that comes up during program execution. If an Anomaly happens, the program's usual flow is interrupted and the program terminates abnormally, which is not recommended, and such exceptions should…

Continue Reading Exception in Java