Skip to content

priyabharti11/Key-Notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 

Repository files navigation

Key-Notes

Basic Fundamentals

(1) Framework and Library Difference

Reference : "Difference Between Library and Framework".
Nov 17, 2020. https://www.c-sharpcorner.com/. Accessed 30 August 2022.
https://www.c-sharpcorner.com/UploadFile/a85b23/framework-vs-library/

Key Difference and Definition of Library and Framework :

- The key difference between a library and a framework is "Inversion of Control".
- When you call a method from a library, you are in control.
- But with a framework, the control is inverted: the framework calls you.

Framework :

- In a framework, all the control flow is already there and there are many predefined white spots that we should fill out with our code.

- A framework is normally more complex. It defines a skeleton where the application defines its own features to fill out the skeleton.

- In this way, our code will be called by the framework appropriately.

- A framework can contain libraries. A framework will usually include many libraries to make your work easier.

Libraries :

- A library performs specific, well-defined operations.

- A library is just a collection of class definitions.

- The reason is it simply code reuse, in other words, gets the code that has already been written by other developers.

- The classes and methods normally define specific operations in a domain-specific area.

- For example,there are some libraries of mathematics that can let developers just call the function without redoing the implementation of how an algorithm works.

- A library will usually focus on a single piece of functionality that you access using an API.

- You call a library function, it executes some code and then the control is returned to your code.

(3) SQL Cross join example Study Content : https://www.sqlshack.com/sql-cross-join-with-examples/

What is Bootloader ?

- A boot loader, also called a boot manager, is a small program that places the operating system (OS) of a computer into memory.

- When a computer is powered-up or restarted, the basic input/output system (BIOS) performs some initial tests, and then transfers
control to the Master Boot Record (MBR) where the boot loader resides.

- Most new computers are shipped with boot loaders for some version of Microsoft Windows or the Mac OS.

Linux Bootloader

  • If a computer is to be used with Linux, a special boot loader must be installed.
  • For Linux, the two most common boot loaders are known as LILO (LInux LOader) and LOADLIN (LOAD LINux).
  • An alternative boot loader, called GRUB (GRand Unified Bootloader), is used with Red Hat Linux.
  • LILO is the most popular boot loader among computer users that employ Linux as the main, or only, operating system.
  • The primary advantage of LILO is the fact that it allows for fast boot-up.
  • LOADLIN is preferred by some users whose computers have multiple operating systems, and who spend relatively little time in Linux.
  • LOADLIN is sometimes used as a backup boot loader for Linux in case LILO fails.
  • GRUB is preferred by many users of Red Hat Linux, because it is the default boot loader for that distribution.

- An unchecked exception (also known as an runtime exception) in Java is something that has gone wrong with the program and is unrecoverable. Just because this is not a compile time exception, meaning you do not need to handle it, that does not mean you don't need to be concerned about it.

Null Pointer exception:

  • This type of exception occurs when you try to access an object with the help of a reference variable whose current value is null or empty.

    // Program to demonstrate the NullPointerException
    class SampleNullPointer {
      public static void main(String args[]) {
         try {
            String a1 = null; // null value
            System.out.println(a1.charAt(0));
         } catch(NullPointerException e) {
          System.out.println("NullPointerException is found in the program.");
      }
    }
    }
    

    Array Out Of Bound Exception :

  • This type of exception occurs when you try to access an array with an invalid index value. The value you are providing is either negative or beyond the length of the array.

    // Program to demonstrate the ArrayIndexOutOfBoundException
    class sample_ArrayIndexOutOfBound {
     public static void main(String args[]) {
     try {
         int b[] = new int[6];
         b[8] = 2; // we are trying to access 9th element in an array of size 7
     } catch(ArrayIndexOutOfBoundsException e) {
         System.out.println ("The array index is out of bound");
     }
    }
    }
    

Illegal Argument Exception :

- This type of exception occurs whenever an inappropriate or incorrect argument is passed to a method. For example, if a method is defined with non-empty string as parameters. But you are providing null input strings. Then, the IllegalArgumentException is thrown to indicate the user that you cannot pass a null input string to the method.

NESSUS ( Open-source Network Scanning Tool ) :

- LINK : https://www.cs.cmu.edu/~dwendlan/personal/nessus.html
<h3>

SIP and H.323 Difference :

About

Topics explored a little

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published