

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is static binding in Java?
In static binding, the method call is bonded with the method body at compile time. This is also known as early binding. This is done using static, private and, final methods.
Example
class Super { public static void sample() { System.out.println("This is the method of super class"); } } Public class Sub extends Super { Public static void sample() { System.out.println("This is the method of sub class"); } Public static void main(String args[]) { Sub.sample() } }
Output
This is the method of sub class
- Related Questions & Answers
- What is static binding in C#?
- Static binding and dynamic binding in Java
- What are differences between static binding and dynamic binding in Java?
- Difference between Static binding and dynamic binding in Java
- Static vs Dynamic Binding in Java
- What is binding in Java?
- Static binding vs Dynamic binding in C#
- What is dynamic binding in Java?
- What is binding and binding time in compiler design?
- Explain the difference between static and dynamic binding in Java.
- Difference Between Static and Dynamic Binding
- What is static import in Java?
- What is operator binding in Python?
- What is early binding in C#?
- What is dynamic binding in C#?
Advertisements