Part 5: Encapsulation in Java with real-time example

Part 5: Encapsulation in Java with real-time example

What is OOP in Java? OOP (Object oriented programming) refers to a programming methodology based on objects instead of just functions and procedures. In this blog, guide how to do encapsulation in java program. What are the main feature of OOP? Encapsulation:...

Part 3: Overriding vs. Overload in JAVA with example.

Part 3: Overriding vs. Overload in JAVA with example.

Key Point on Overriding vs Overloading: Overriding is a run-time concept while overloading is a compile-time concept. In any object-oriented programming language(OOP), The ability of a subclass to override a method. This process allows a class to inherit from a super...

Part 2: Method Signature in Java with Example.

Part 2: Method Signature in Java with Example.

Method Signature in Java: Firstly need to know what is java method? why to use in java? Java method refers, a method which is a block of code which only runs when it is called. Here data can pass as parameters into a method. Methods are used to perform certain...

Part 11: Java Interface tutorials with Example.

Part 11: Java Interface tutorials with Example.

Interface in Java Interface is a similar kind of java class. It can be called as collection of abstract methods or another way of achieving abstract method as it contains empty bodies. It can declare as:  interface <any-name>{}. Example /* interface */ interface...

Part 9: Nested(Inner) class in JAVA with EXAMPLES

Part 9: Nested(Inner) class in JAVA with EXAMPLES

Nested class in JAVA with EXAMPLES Nested class if we declare one or more classes in a class then these classes are known as nested class. Java Allows two category of nested class Static nested class Non Static nested class or inner class. i) Member inner class: When...

Part 10: Java abstract class with Example.

Part 10: Java abstract class with Example.

Java abstract class with Example When we declare any class with abstract then this class known as abstract class. Abstract class can method can be used as abstract and non-abstract. In Interface all methods implicitly public abstract and we know abstract methods can’t...