Showing posts with label OOPS. Show all posts
Showing posts with label OOPS. Show all posts

Aug 29, 2022

Multi_Threading_Enhancements

ThreadGroup

  • Based on the Functionality we can Group Threads into a Single Unit which is Nothing but ThreadGroup i.e. ThreadGroup Represents a Set of Threads.
  • In Addition a ThreadGroup can Also contains Other SubThreadGroups.

 

Aug 24, 2022

Multi _Threading

Introduction 
Multitasking: 
Executing several tasks simultaneously is the concept of multitasking. There are two types of multitasking's.

  1. Process based multitasking.
  2. Thread based multitasking.

Diagram:


Aug 11, 2022

Exception_Handling

Exception: An unwanted unexpected event that disturbs normal flow of the program is called exception.

Example:

  •    SleepingException 
  •    TyrePunchuredException 
  •    FileNotFoundException ...etc

It is highly recommended to handle exceptions. The main objective of exception handling is graceful (normal) termination of the program.

Aug 7, 2022

Object_Oriented_Programming_(OOPS)

Data Hiding

  • Our internal data should not go out directly that is outside person can't access our internal data directly.
  • By using private modifier we can implement data hiding.
Example:
 class Account  {
       private double balance; 
        ......................; 
        ......................;
   }  

  • After providing proper username and password only , we can access our Account information.
  • The main advantage of data hiding is security.

Note: 

  • Recommended modifier for data members is private.

You may also like

Kubernetes Microservices
Python AI/ML
Spring Framework Spring Boot
Core Java Java Coding Question
Maven AWS