JDBC, Java Programming, and Web Development Concepts
JDBC
3 Drivers
Handlers, also called drivers, are a set of classes that implement classes and interfaces required for JDBC API that a Java application can connect with a BD. When developers want a BD that it can be accessible through JDBC they must implement a handler for that base of data, the mission manager will translate JDBC API standard commands to native protocol of the database.
4 A Basic JDBC Application
Every application that accesses a database using the JDBC API must a series of steps:
- Establish
RESTful Web API: A Comprehensive Guide
1. What is REST and RESTful?
REST stands for REpresentational State Transfer. It is a relatively new approach to writing web APIs.
RESTful refers to web services written by applying REST architectural concepts. These services focus on system resources and how the state of a resource should be transported over the HTTP protocol to different clients written in different languages. In RESTful web services, HTTP methods like GET, POST, PUT, and DELETE can be used to perform CRUD operations.
2. Architectural
Read MoreData Link Layer: Concepts, Protocols, and Standards
Introduction
The data link layer is the second layer of the Open Systems Interconnection (OSI) model. It is responsible for the exchange of data between nodes on a network. The data link layer provides two main functions:
- Media access control: The data link layer controls access to the physical medium. This includes determining which node can transmit data at any given time and resolving collisions that occur when multiple nodes attempt to transmit simultaneously.
- Error detection and correction: The
CPU Scheduling Algorithms and Inter-Process Communication
CPU Scheduling Algorithms
1. Determining Length of Next CPU Burst
Estimating the length of the next CPU burst can be done using exponential averaging or the length of previous CPU bursts.
2. Priority Scheduling
Each process is assigned a priority number, with the highest priority (smallest integer) being allocated the CPU. Shortest Job First (SJF) is a priority scheduling algorithm where priority is based on the predicted next CPU burst time. However, this algorithm can lead to starvation, where low-
Read MoreDesign Patterns and Principles
Designing
A creative process where the designer has a goal given by the customer, no construction work or algorithm. Object oriented way of dividing a complex whole into independent, co-operating components. The challenge is to find a natural division. System is a task automatized by software. The scope is normally defined by the customer.
Agile
- Individuals and interactions over processes and tools
- Working software over comprehensive documentation
- Customer collaboration over contract negotiation
- Responding
Number Systems, Data Representation, and Compression
Number Systems
Hexadecimal
There is no single symbol (digit) to represent 16 in hexadecimal. The hexadecimal number 10 corresponds to the decimal value 16.
Binary
The devices used to store and manage data on a computer are cheaper and more reliable if they only have to represent two possible states. Every electrical signal is considered to be either “low” or “high” that map to the binary digits 0 and 1.
There are 2 digits in the binary number system.
Decimal
There are 10 digits in the decimal number system.
Read More