All Questions

Informatics practices -java

Follow
Showing 1 - 3 out of 3 Questions
73 Views

what is early/static binding in Java??

shivangi mehta 11th Jan, 2020

Hello,

Lets understand binding first.

Binding means the link between reference and actual code e.g . when you refer a variable it's bonded to the code where it is defined, similarly when you call a method, it's linked to the code where a method is defined.

There are two types of method binding in Java, static binding and dynamic binding. When a method is called in Java it's bonded to the actual code either at compile time or runtime, when the program is actually started and objects are created. As the name suggest, static binding is more of static nature hence it occurs at compile time i.e. your code knows which method to call once you compiled your Java source file into a class file. Since it happens early in program's life cycle it is also known as early binding in Java.

133 Views

why java does not support multiple inheritance?

priyaankasarkar Student Expert 11th Jan, 2020

Some say that JAVA can support Multiple inheritance through interface but it is not exactly correct. In multiple inheritance, we inherit the properties and behaviour of multiple classes to Single class. C++, Common Lisp support multiple inheritance. But JAVA is a a simple, object oriented, distributed, interpreted, robust, secure, architecture neutral, high performance, multithreaded, dynamic language. And simplicity doesn't work for multiple inheritance. Unfortunately we cannot provide diagramic illustration and so we cannot go beyond theoretical approach.

The question have been saved in answer later, you can access it from your profile anytime. Access now

Download the Careers360 App on your Android phone

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

Careers360 App
150M+ Students
30,000+ Colleges
500+ Exams
1500+ E-books