Skip to main content

Posts

Why java won't provide support for multiple inheritance?

 Why java won't provide support for multiple inheritance? 'Hi , Welcome to  Java Education Point . In this post we talk about a Question. There may be a chance of raising ambiguity problems.  Example:
Recent posts

Tightly Encapsulated class in Java || What is Tightly Encapsulated class in Java?

 Tightly Encapsulated class in Java || What is Tightly Encapsulated class in Java? 'Hi , Welcome to  Java Education Point . In this post we talk about Tightly Encapsulated class in java. Defination of Tightly Encapsulated Class: A class is said to be tightly encapsulated if and only if every variable of that class declared as private whether the variable has getter and setter methods are not , and whether these methods declared as public or not, these checkings are not required to perform. Example of Tightly Encapsulated Class: class Account  {  private double balance; public double getBalance() {  return balance;  }  }  Which of the following classes are tightly encapsulated? Which of the following classes are tightly encapsulated?  class A {  int x=10; //not  }  class B extends A  {  private int y=20; //not  }  class C extends B {  private int z=30; //not  }  Note: if the parent class is no...

Encapsulation in Java || What is Encapsulation in Java?

 Encapsulation in Java || What is Encapsulation in Java? Hi , Welcome to Java Education Point . In this post we talk about Encapsulation in java. Defination of Encapsulation: Binding of data and corresponding methods into a single unit is called Encapsulation .  If any java class follows data hiding and abstraction such type of class is said to be encapsulated class. Encapsulation=Datahiding+Abstraction    Every data member should be declared as private and for every member we have to maintain getter & Setter methods.  Example of Encapsulation: Advantages of Encapsulation: The main advantages of encapsulation are :  1. We can achieve security.  2. Enhancement will become very easy.  3. It improves maintainability and modularity of the application.  4. It provides flexibility to the user to use system very easily.  The main disadvantage of encapsulation is it increases length of the code and slows down execution. 

Abstraction in Java || What Is Abstraction in Java?

 Abstraction in Java || What Is Abstraction in Java?  Hi , Welcome to Java Education Point. In this post we talk about Abstraction in java. Defination of Abstraction: Hiding the internal implementation and just highlight the set of services we are offering is the concept of Abstration. Note:- By Using abstract classes and interfaces we can implement Abstraction . Example of Abstraction:  Through bank ATM GUI screen Bank People are highlighting the set of services what they are offering without highlighting Internal Implementation. Advantages Of Abstraction: 1.We can Achive security because we are not highlighting our internal Implementation.  2. Enhancement will Become very easy because Without Effecting outside person we can able to perform any kind of changes in our Internal System. 3. it Provides more flexibility of the application. 4. It improves maintainability of the application. 5. It improves modularity of the application.  6. It improves easyness to us...

Data Hiding in Java || What is Data Hiding in Java?

 Data Hiding in Java || What is Data Hiding in Java? Welcome to Our Java Education Point . In this Post we learn about Data Hiding in Java or Data Hiding. Data Hiding Is Most Famous Concept In java or Other Programming Langauge. Definations :  After Validation or Identification Outside Person Can access our Internal Data.   OR Outside Person Cannot Access Our data Directly . This OOPs Feature is nothing But Data Hiding . OR Our Internal data should not go out directly that is outside person cannot access our data directly. This OOPs Feature is nothing But  Data Hiding . Examples of Data Hiding: Example1:-  After Providing proper username and password we can able to access our Gmail Inbox Information. Example2:-  Even Though We are valid customer of the Bank . We Can able to access our account Information and we can not access others Account Information. Note- By Declaring data member (Variable) as Private we can achieve Data Hiding.   Code Example:-...