Explain Coupling

Coupling: Coupling occurs whenever classes are aware of each of other as their instances should interact. The linkage between two classes which might be either weak or strong. Stronger coupling occurs whenever one class has a thorough knowledge of the internal implementation of the other, and is written to take benefit of that knowledge. Therefore anything that has the potential to decrease the amount of inside knowledge will tend to weaken the coupling. Therefore, information hiding and encapsulation. The Java's visibility levels: private, package, protected, public - progressively expose detail to other classes, and therefore raise the potential for stronger coupling. Interfaces are one way to decrease to reduce coupling - as you interact with a class through an abstract definition, instead of a concrete implementation.

   Related Questions in Programming Languages

  • Q : Explain the term accessibility testing

    Explain the term accessibility testing.

  • Q : What are the uses of GPC and GPT What

    What are the uses of GPC and GPT?

  • Q : Define Fully evaluating operator Fully

    Fully evaluating operator: An operator which computes all of its arguments to generate an outcome. Standard arithmetic operators, like +, are totally evaluating. In contrary, some Boolean operators, like &&, are short-circuit operators.

  • Q : What is an Unchecked exception

    Unchecked exception: An exception for which it is not needed to give a local try statement or to propagate through a throws clause stated in the method header. An exception which is not handled will cause program annihilation when it is thrown.

  • Q : What is HSB Color Model HSB Color Model

    HSB Color Model: A color model based on symbolizing a color as 3-components: hue, saturation and brightness. This is at times termed as the HSV color model - hue, saturation and value.

  • Q : Define Abstract class Abstract class :

    Abstract class: It is a class with the abstract reserved word in its header. The Abstract classes are differentiated by the fact that you might not directly construct objects from them employing the new operator. The abstract class might have zero (0)

  • Q : Define Unbounded repetition Unbounded

    Unbounded repetition: The repetition where statements in a loop's body are executed an arbitrary number of times, according to the consequences of the statements in the loop's body. All of the loop control structures in the Java offer for unbounded re

  • Q : Define the term CPU Scheduler Define

    Define the term CPU Scheduler?

  • Q : Explain Interpreter Interpreter : A

    Interpreter: A program that executes a translated version of the source program by implementing a virtual machine. The interpreters usually simulate the actions of an idealized Central Processing Unit. An interpreter for Java should implement the Java

  • Q : What is Bookmark Bookmark : It is

    Bookmark: It is employed by a Web browser to memorize details of a Uniform Resource Locator (URL).

©TutorsGlobe All rights reserved 2022-2023.