Javarevisited

Learn Java, Programming, Spring, Hibernate throw tutorials, examples, and interview questions

Monday, July 7, 2025

Difference between Class, Instance and Local variables in Java? Example

›
There are a lot of differences between instance variable, class variable, and local variable in Java, and knowing them will help you to wr...
8 comments:

What is the Use of Interface in Java and Object Oriented Programming? [Answer]

›
Many times, I have seen questions like why should we use an interface in Java? I f we can not define any concrete methods inside the interf...
3 comments:

5 Benefits of using interface in Java and Object Oriented Programming

›
Interface in Java is a simple concept but many programmers fail to realize their actual use, including me. When I started learni...

Difference between Abstraction and Encapsulation in Java? OOP Question Answer

›
Both Abstraction and Encapsulation are two of the four basic OOP concepts which allow you to model real-world things into objects so that...
20 comments:

Difference between Association, Composition and Aggregation in Java, UML and Object Oriented Programming

›
In Object-oriented programming, one object is related to another to use functionality and service provided by that object. This relationshi...
29 comments:

Why Default or No Argument Constructor is Important in Java Class? Answer

›
Almost all Java developers know that compiler adds a default constructor or better known as a no-argument constructor in every Java class, ...
6 comments:

What is Type Casting in Java? Casting one Class to other class or interface Example

›
Type casting in Java is to cast one type, a class or interface, into another type i.e. another class or interface. Since Java is an Object...
10 comments:

What is Constructor in Java with Example – Constructor Chaining and Overloading

›
What is constructor in Java Constructor in Java is a block of code which is executed at the time of Object creation. But other than ge...
7 comments:

What is Object in Java and Object Oriented Programming? Example Tutorial

›
Object in Java Object in Java programming language or any other Object-oriented programming language like C++ is the core of the OOPS c...

Open Closed Design Principle in Java - Benefits and Example

›
Great Example of Open Closed Design Principle I am a big fan of design pattern articles and love to read articles on design patterns and...
4 comments:

How to use Class in Java Programming - Example

›
When I first about Class in Java I just thought what is this Class in Java and from that date to now Whenever we talk about java its reall...
11 comments:

What is Inheritance in Java and OOP Tutorial - Example

›
Inheritance in Java is an Object oriented or   OOPS concepts , which allows to emulate real world Inheritance behavior, Inheritance allows...
6 comments:

What is polymorphism in Java? Method overloading or overriding?

›
What is Polymorphism in Java Polymorphism is an important Object oriented concept and is widely used in Java and other programming lan...
16 comments:

Can we declare a class Static in Java? Top Level and Nested static class Example

›
The answer to this question is both Yes and No , depending on whether you are talking about a top-level class or a nested class in Java. Yo...
2 comments:

Law of Demeter in Java - Principle of least Knowledge - Real life Example

›
The Law of Demeter also known as  the principle of least knowledge is a coding principle, which says that a module should not know about th...
5 comments:
›
Home
View web version

Contributors

  • SimpleJava
  • javin paul
Powered by Blogger.