Professional Documents
Culture Documents
Chapter 1
Chapter 1
TECHNOLOGIES
(ITec4121)
CHAPTER ONE
INTRODUCTION TO INTEGRATIVE
PROGRAMMING
Introduction
3
Compiled and Interpreted languages…
Interpreted Language:
It is a programming language that has interpreter which
executes instructions directly without compiling a program
Examples of Interpreted languages:
PHP, VBScript, Jscript, etc.
Note:
Hybrid languages uses both compiled and interpreted languages:
For examples:
Java, C#, VB.Net, Pyhton, etc
For every compiled language, an interpreter can be built but the
reverse is impossible. That is, all the interpreted languages cannot
be a compiled language.
4
Compiled and Interpreted languages…
Compiled Interpreted
Advantages Disadvantages Advantages Disadvantages
Source code is private Extra step Easier to debug Source code is public
5
Programming Languages vs. Scripting Languages
6
Programming Languages vs. Scripting Languages…
7
Generic types and generic (parameterized) programming
8
Generic types and generic (parameterized) programming…
9
Generic types and generic (parameterized) programming…
11
Generic types and generic (parameterized) programming…
12
Generic types and generic (parameterized) programming…
Generic class
A class that can refer to any type is known as generic class.
A generic class declaration looks like a non-generic class
declaration, except that the class name is followed by a type
parameter section.
Consider the following program in which we are using T type
parameter to create the generic class of specific type.
The T type indicates that it can refer to any type (like String,
Integer, Float, Double, etc)
13
Generic types and generic (parameterized) programming…
Type Parameters
The type parameters naming conventions are important to learn generics
The commonly type parameters are as follows:
1. T - Type
2. E - Element
3. K - Key
4. N - Number
5. V - Value
Generic Method
Like generic class, we can create generic method that can accept any type of
argument.
15
Generic types and generic (parameterized) programming…