Multithreading is the ability of a program or an
operating system process to manage its use by
more than one user at a time and to even manage
multiple requests by the same user without
having to have multiple copies of the
programming running in the computer.
Multithreading is the ability of a program or an
operating system process to manage its use by
more than one user at a time and to even manage
multiple requests by the same user without
having to have multiple copies of the
programming running in the computer.
Lecture 10 from the IAG0040 Java course in TTÜ.
See the accompanying source code written during the lectures: https://github.com/angryziber/java-course
This presentation is about advanced multithreading and concurrency in Java. I have tried my best to explain the concepts with code. Feel free to reach me if you have any questions or concerns.
This presentation is ideal for a beginner of Java or someone who wants to brush up their Java Knowledge. It's simple to understand and well organized in a way most of the area in core Java has been covered.
Lecture 10 from the IAG0040 Java course in TTÜ.
See the accompanying source code written during the lectures: https://github.com/angryziber/java-course
This presentation is about advanced multithreading and concurrency in Java. I have tried my best to explain the concepts with code. Feel free to reach me if you have any questions or concerns.
This presentation is ideal for a beginner of Java or someone who wants to brush up their Java Knowledge. It's simple to understand and well organized in a way most of the area in core Java has been covered.
In this core java training session, you will learn Elements of Java programming. Topics covered in this session are:
• Quick review of some important concepts from last class
• History of Java
• JDK and JRE
• Byte Code and JVM (Java Virtual Machine)
• Platform Independence
• Principles of Object Oriented Programming
• Writing your first Java Application
• Elements of Java programming language
• Built in Data Types
• Conditional Statements
• Loops
For more information about this course visit on this link: https://www.mindsmapped.com/courses/software-development/learn-java-fundamentals-hands-on-training-on-core-java-concepts/
In this session you will learn:
1. Principles of Object-Oriented Programming
2. Writing your first Java Application
3. Elements of Java programming language
4. Built in Data Types
5. Conditional Statements
6. Loops
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
2. Java is one of the world's most important and widely used
computer languages, and it has held this distinction for
many years.
Java is Object oriented programming language.
Helps to create modular programs and reusable code.
Java is free to access and can run on all platforms.
Java was developed by James Gosling, Patrick Naughton,
Mike Sheridan at Sun Microsystems Inc. in 1991.
The initial name was Oak but it was renamed to Java in
1995 as OAK was a registered trademark of another Tech
company.
Overview Of Java
3. Java was initially launched as Java 1.0 but soon after its initial
release, Java 1.1 was launched. Java 1.1 redefined event
handling, new library elements were added.
In Java 1.2 Swing and Collection framework was added
and suspend(), resume() and stop()methods were deprecated
from Thread class
JAVA EDITIONS.
J2SE(Java 2 Standard Edition) - to develop client-side
standalone applications or applets.
J2ME(Java 2 Micro Edition ) - to develop applications for
mobile devices such as cell phones.
J2EE(Java 2 Enterprise Edition ) - to develop server-side
applications such as Java servlets and Java ServerPages.
Evolution Of Java
4. .
Java is widely used in every corner of world and of human life
Java is not only used in softwares but is also widely used in
designing hardware controlling software components.
Banking: To deal with transaction management.
Retail: Billing applications that you see in a store/restaurant are
completely written in Java.
Information Technology: Java is designed to solve
implementation dependencies.
Android: Applications are either written in Java or use Java API.
Financial services: It is used in server-side applications.
Stock market: To write algorithms as to which company they
should invest in.
Big Data: Hadoop MapReduce framework is written using Java.
Scientific and Research Community.
Application of Java
5. Developing Desktop Applications
Web Applications like Linkedin.com,
Snapdeal.com etc
Mobile Operating System like Android
Embedded Systems
Robotics and games etc.
Cont..
7. Java is easy to learn and its syntax is quite simple, clean and
easy to understand.
The confusing and ambiguous concepts of C++ are either left
out in Java or they have been re-implemented in a cleaner
way.
It is an evolving language
Does not have complex features as other programming
languages like
Operator overloading,
Multiple inheritance through classes, pointers and
Explicit memory allocation.
Simple
8. In java everything is Object which has some
state and behaviour.
Java can be easily extended as it is based on
Object Model.
Object oriented programming is a
methododoly in which programs are
organized as collection of objects, each of
which represents an instance of a class
Object Oriented
9. Two main problems which cause program failures
i.e memory management mistakes and
mishandled runtime errors can be overcome.
Memory management mistakes can be overcome by
garbage collection. Garbage collection is automatic de-
allocation of objects which are no longer needed.
Mishandled runtime errors are resolved by Exception
Handling procedures.
Java eliminates error prone codes by checking the code at
compile time and runtime .
Robust
10. Portable
Unlike other programming languages such as
C, C++ etc which are compiled into platform
specific machines.
Java is write-once, run-anywhere language-
compiled version of class can run on any
platform.
Platform Independent
11. When it comes to security, Java is always the first choice.
With java secure features it enable us to develop virus
free, temper free system.
Java program always runs in Java virtual machine
environment with almost null interaction with system OS,
hence it is more secure.
Provides a virtual firewall between the application and
the computer.
Java codes are confined within Java Runtime
Environment (JRE).
No use of explicit pointers.
Secure
12. Java multithreading feature makes it possible to
write program that can do many tasks
simultaneously. Benefit of multithreading is
that it utilizes same memory and other
resources to execute multiple threads at the
same time, like While typing, grammatical
errors are checked along.
Multi Threading
13. Compiler generates bytecodes, which have
nothing to do with a particular computer
architecture, hence a Java program is easy to
intrepret on any machine.
Once compiled Java class file can run on any
platform
Architectural Neutral
14. JAVA COMPILER
JAVA BYTE CODE
JAVA INTERPRETER
Macintosh Solaris Windows Vista
(translator)
(same for all platforms)
(one for each different system)
Windows 7
15. Java Byte code can be carried to any platform.
No implementation dependent features.
Everything related to storage is predefined,
example: size of primitive data types
Byte codes are interpeted by JVM
Portable
16. Java is an interpreted language, so it will never
be as fast as a compiled language like C or C++.
But, Java enables high performance with the
use of just-in-time compiler.
High Performance
17. C is a structured language and Java is an object
oriented language and has mechanism to define
classes and objects.
Java does not support an explicit pointer type
Java does not have preprocessor, so we cant use
#define, #include and #ifdef statements.
Java does not include structures, unions and enum
data types.
Java does not include keywords like goto, sizeof and
typedef.
Java adds labeled break and continue statements.
C Language and Java Compared
18. Java does not support operator over loading.
Java does not perform automatic type conversions that
result in loss of precision.
Java does not support global variables. Every method and
variable is declared within a class and forms part of that
class.
Java does not allow default arguments.
Java does not support inheritance of multiple super classes
by a sub class (i.e., multiple inheritance). This is
accomplished by using “interface” concept.
It is not possible to declare unsigned integers in java.
In java objects are passed by reference only. In C++ objects
may be passed by value or reference.
C++ and Java Compared
19. Multithreading, that allows two or more pieces of the same
program to execute concurrently.
C++ has a set of library functions that use a common header file.
But java replaces it with its own set of API classes.
It adds packages and interfaces.
Java supports automatic garbage collection.
break and continue statements have been enhanced in java to
accept labels as targets.
The use of unicode characters ensures portability.
NEW FEATURES ADDED IN
JAVA
20. Java Runtime Environment
JRE : The Java Runtime Environment (JRE) provides the
libraries, the Java Virtual Machine, and other components
to run applets and applications written in the Java
programming language.
JRE does not contain tools and utilities such as compilers
or debuggers for developing applets and applications.
JRM=JVM+ set of libraries+ other additional fies
22. Java Development Kit
JDK : The JDK also called Java Development
Kit is a superset of the JRE, and contains
everything that is in the JRE, plus tools such as
the compilers and debuggers necessary for
developing applets and applications.
JDK=JRE+ Development tools
24. Java virtual Machine(JVM) is a virtual Machine that provides
runtime environment to execute java byte code.
The JVM doesn't understand Java pogram, that's why you
compile your *.java files to obtain *.class files that contain the
bytecodes understandable by the JVM.
JVM control execution of every Java program. It enables features
such as automated exception handling, Garbage-collected heap.
What is JVM?
26. Class Loader : Class loader loads the Class for execution.
Method area : Stores pre-class structure as constant pool.
Heap : Heap is in which objects are allocated.
Stack : Local variables and partial results are store here. Each
thread has a private JVM stack created when the thread is
created.
Program register : Program register holds the address of JVM
instruction currently being executed.
Conti..
27. Native method stack : It contains all native used in
application.
Executive Engine : Execution engine controls the
execute of instructions contained in the methods of
the classes.
Native Method Interface : Native method interface
gives an interface between java code and native code
during execution.
Native Method Libraries : Native Libraries consist
of files required for the execution of native code.
Conti..
30. Abstraction
Denotes the extraction of essential characteristics of an object that distinguish from all
other kinds of objects.
Encapsulation
Hiding the implementation details of a class.
Forces the user to use an interface to access the data.
Inheritance
Process by which one class acquires the properties and functionalities of the other.
Polymorphism
Means the ability of methods to exist in several different forms
Object Oriented Programming
31. Object
31
Objects are the basic run time entities in an object oriented system.
They may represent a person, a place, a bank account, a table of
data or any item that the program has to handle.
Objects have two characteristics: They have states and behaviors.
Object: Car
State: Color, Brand, Model
Behavior: Accelerate, Slow Down, Gear change.
What is the state and behavior of this bulb?
32. A bulb:
1. It’s a real-world thing.
2. Can be switched on to generate light and switched off.
3. It has real features like the glass covering, filament and holder.
4. It also has conceptual features like power.
5. A bulb manufacturing factory produces many bulbs based on a basic
description / pattern of what a bulb is.
object
methods
member variables
class
Putting it together
32
33. Class
33
A class is a construct created in object-oriented programming
languages that enables creation of objects.
Also sometimes called blueprint or template or prototype
from which objects are created.
It defines members (variables and methods).
Characteristics of an object are represented in a class as
Properties/state/variables. The actions that can be performed
by objects become functions of the class and is referred to as
Methods/behaviour.
A class is an abstraction.
35. Abstraction
35
Abstraction refers to the act of representing essential features
without including the background details or explanations.
Example
For a Doctor you are a Patient
Name, Age, Old medical records
For a Teacher you are a Student
Name, Roll Number/RegNo, Education background
For HR Staff you are ______________
___________,_____________,___________
Abstraction denotes essential characteristics of an object that
distinguish it from all other kinds of objects and thus provide crisply
defined conceptual boundaries, relative to the perspective of the
viewer.
-Grady Booch
36. Encapsulation
36
Encapsulation is binding data and operations that work on data
together in a construct.
Encapsulation involves Data and Implementation Hiding.
Would you like it if your CPU is given
to you like this?
What are the problems if it were given
to you like this?
Encapsulation is the process of compartmentalizing the elements of
abstraction that constitute its structure and behavior; encapsulation
serves to separate the contractual interface of an abstraction and its
implementation.
- Grady Booch
37. Class and Encapsulation
Student
•-roll: long
• -name: String
• + display(): void
• + read(): boolean
Rectangle
• -length: int
• -width:int
• +area(): int
LinkedList
•-Node
•+ addFirst(Node n)
•+ remove(Node n)
•+ add(Node n, int pos)
- : private
+ : public
38. Reuse in Object Oriented
Programming
38
Object Oriented programming also implements reuse in the same
way that we do in real life.
Using
has-a
is-a
Has-a or composition relationship is implemented by having a
class having another class as its member, or rather an object
having another object as its member.
Car has a Stereo
College has Teachers and Students
Is-a is implemented through what we call inheritance relationship
39. Inheritance
Inheritance allows to reuse classes by deriving a new class from
an existing one
The existing class is called the parent class, or superclass, or base
class
The derived class is called the child class or subclass. The child
class inherits characteristics of the parent class(i.e the child class
inherits the methods and data defined for the parent class
Defines IS-A relationship between classes
Cat IS-A Animal
Car IS-A Vehicle
Rose IS-A Flower
41. Many Object-orientated language does not support this type of
inheritance.
Java, C# are the examples of object-oriented language that does
not support multiple inheritance through classes.
Mammal Bird
Bat
Multiple inheritance
42. { {Super class Subclass
42
Fruit
Library
Cat
Bird
Parrot
Music
Tiger
Books
Apple
Mango
43. Activity
Given the following classes. Can you form inheritance hierarchy?
Person
Teacher
Student
HOD
Typist
Clerk
What are the common members shared ?
44. Polymorphism
A concept in type theory, according to which a name (such as a
variable declaration) may denote objects of many different classes
that are related by some common superclass; thus, any object
denoted by this name is able to respond to some common set of
operations in different ways.
- Grady Booch
46. You pick a rose from the vase and smell it?
What fragrance do you expect?
Flower
fragrance()
Rose
fragrance()
Sunflower
fragrance()
FlowerVase
Flower f[]
smell()
f[0]= rose;
f[1]= sunflower;
….
f[0]. fragrance();
f[1]. fragrance();
…
47. Benefits of OOP
1. Emphasis is on data rather than procedure.
2. Programs are divided into objects.
3. Methods are reused.
4. Methods that operate on the data of an object are tied together in the data
structure.
5. Data is hidden and can not be accessed by external functions.
6. Objects may communicate with each other through .
7. Good control over data, data of an object can be accessed by methods
associated with the object.
8. Easy to test, upgrade and debug.
48. Client-Server Systems(OCSI)
Object-Oriented Databases(ODBMS)
Real-Time System Design
Office Automation Systems
CAD/CAM Systems
Applications of OOPs
49. Object-oriented programming is a method of implementation in which
programs are organized as cooperative collections of objects.
The object’s state is determined by the value of its properties and its
behavior is determined by the operations that it provides.
Abstraction is the process of taking only a set of essential characteristics
from something.
Encapsulation is binding data and operations that work on data together
in a construct.
Inheritance defines relationship among classes, wherein one class share
structure or behavior defined in one or more classes.
Polymorphism is using a function in many forms. Poly means ‘many’,
Morphism means ‘forms’.
Summary