You are on page 1of 18

Industrial Training Seminar on Java

Submitted by:-
-RISHABH KUMAR RANA(1601410902)
OUTLINE :-

• About the company


• Java
• Why JAVA ?
• JVM
• Principles
• Java isn’t C
• OOP’s Concept
• Name conventions
• Snaphhots.
About the company

• SKYLARK PRINTER &PUBLISHER PVT. LTD.is a


leading education and career services provider in Asia.
• It is one of the leading in IT Certification Training and
development.
• Create highly skilled work force- the best as per global
standards.
• Offer a specific technical training programs, soft skills training,
integrated industry programs and technology solutions.
Introduction :-

• It is designed by JAMES GOSLING in June 1991.


• Sun Microsystems released the first public implementation as
Java 1.0 in 1996 as "Write Once, Run Anywhere" (WORA).
• On November 13, 2006, Sun released much of its Java virtual
machine (JVM) as free & open source software.
• The latest version of java is Java SE 11 which was released in
September 2018 & Java SE 12 which is going to be released on
March 2019.
Why Java ?

• It’s the current “hot” language.


• It’s almost entirely object-oriented.
• It has a vast library of predefined objects and operations.
• It’s more platform independent
• this makes it great for Web programming
• It’s more secure.
• It isn’t C++.
Java Virtual Machine(JVM)
• A Java virtual machine (JVM) is a virtual machine that enables
a computer to run Java programs as well as programs written in
other languages that are also compiled to Java bytecode.
• The .class files generated by the compiler are not executable
binaries
• so Java combines compilation and interpretation
• This approach provides platform independence, and greater
security.
Principles:-

There were five primary goals in creation of the Java language:


• “Simple, Object-oriented, and familiar".
• “Robust and secure".
• “Portable".
• “High performance".
• “Interpreted, Threaded, and Dynamic".
Java isn't C!

• In C, almost everything is in functions


• In Java, almost everything is in classes
• There is often only one class per file
• There must be only one public class per file
• The file name must be the same as the name of that public
class, but with a .java extension
OOP’s Concept

• Abstraction
• Encapsulation
• Polymorphism
• Inheritance
• Association
• Aggregation
• Composition
Encapsulation

• Encapsulation is the technique used to implement abstraction in


object oriented programming.It is used for access restriction to
a class members and methods.
• Access modifier keywords are used for encapsulation in object
oriented programming. For example, encapsulation in java is
achieved using private, protected and public keywords.
Polymorphism

• Polymorphism is the concept where an object behaves


differently in different situations.
• There are two types of polymorphism – compile time
polymorphism and runtime polymorphism.
Inheritance

• Inheritance is the object oriented programming concept where


an object is based on another object.
• Inheritance is the mechanism of code reuse. The object that is
getting inherited is called superclass and the object that
inherits the superclass is called subclass.
Association

• Association is the OOPS concept to define the relationship


between objects.
• Association defines the multiplicity between objects.
• For example Teacher and Student objects.
Aggregation

• Aggregation is a special type of association.


• In aggregation, objects have their own life cycle but there is an
ownership.
Composition

• Composition is a special case of aggregation.


• Composition is a more restrictive form of aggregation.
• For example, House has-a Room. Here room can’t exist
without house.
What is a class?

• Early languages had only arrays


• all elements had to be of the same type
• Then languages introduced structures (called records, or
structs)
• allowed different data types to be grouped
• Then Abstract Data Types (ADTs) became popular
• grouped operations along with the data
Name conventions

• Java is case-sensitive; maxval, maxVal, and MaxVal are


three different names
• Class names begin with a capital letter
• All other names begin with a lowercase letter
• Subsequent words are capitalized: theBigOne
• Underscores are not used in names
• These are very strong conventions!
THANK YOU

You might also like