Tutor profile: Emad B.
Subject: Java Programming
What is an exception?
An exception is an event that occurs during the execution of a program that disrupts the normal flow of instructions which can be called through the "throw(s)" keyword in Java. There are many types of exceptions such as a null pointer exception, stack overflow exception, etc.
Subject: Software Engineering
What is Scrum?
Scrum is an agile development methodology used in the development of Software based on an iterative and incremental processes. Scrum is adaptable, fast, flexible and effective agile framework that is designed to deliver value to the customer throughout the development of the project.
Subject: Computer Science (General)
What is the difference between a linked list and an array and what are the pros and cons of a linked list compared to an array?
An array is a collection of elements of the same data type stored contiguously in memory. A linked list is a data structure of a sequence of connected nodes in one direction of the same data type stored sparsely in memory. Pros: -Insertion and Deletion at the ends of the nodes is faster because there are pointers pointing at the beginning and at the end of the linked list. There is also no need to resize the linked list like in arrays where you have to reallocate a new array of a smaller number of elements/ Cons: -Searching an element in a linked list is very slow because it is always O(n) time complexity where as with arrays, iteration is much faster because the data is stored contiguously and each element can be accessed via the index of the array, also known as random access.