[go: up one dir, main page]

0% found this document useful (0 votes)
73 views22 pages

Lecture 1

This document provides an overview of Internet Programming and the principles of object-oriented programming in Java. It discusses the history and features of Java, including how Java is simple, object-oriented, platform independent, secure, robust, architecture-neutral, portable, high performance, distributed, multi-threaded, dynamic. The document covers Java history from its origins at Sun Microsystems to recent releases. It also outlines some of the key concepts in object-oriented programming.

Uploaded by

Gaurav kamboj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views22 pages

Lecture 1

This document provides an overview of Internet Programming and the principles of object-oriented programming in Java. It discusses the history and features of Java, including how Java is simple, object-oriented, platform independent, secure, robust, architecture-neutral, portable, high performance, distributed, multi-threaded, dynamic. The document covers Java history from its origins at Sun Microsystems to recent releases. It also outlines some of the key concepts in object-oriented programming.

Uploaded by

Gaurav kamboj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 22

UNIVERSITY INSTITUTE COMPUTING

BSc (CS)/ BCA


Subject Name: Internet Programming
Code: 21SCT-251/21CAT-251

INTERNET PROGRAMMING DISCOVER . LEARN . EMPOWER


1
Syllabus
Unit-I
Principles of Object-Oriented Programming

• Introduction: Introduction to Java, Basic Features, JVM Concepts, A Simple Java


Program, Primitive Data Type and Variables, Java Keywords,.

2
Content
(Unit I)
Principles of Object-Oriented Programming
Chapter 1.1:
Lecture1.1.1-
1. Java History
2. Java Edition
3. Java Features

3
Objectives/Outcomes

CO1: Apply basic programming concepts of Java under Console


Applications.

4
JAVA HISTORY
• James Gosling, Mike Sheridan and Patrick Naughton initiated the Java language
project in June 1991. The small team of Sun Microsystem engineers called Green
Team.
• Firstly, it was called “Greentalk ” by James Gosling and file extension was .gt
• Java was originally designed for small, embedded system in electronic appliances.
• After that it was called “Oak”

Fig 1: Green Team[1]

5
JAVA HISTORY Contd.
• Java was called Oak as it is a symbol of strength and chosen as a national tree of
many countries like USA, France, Germany etc.
• In 1995, Oak was renamed as JAVA (Java is an island in Indonesia where first coffee
was produced ).
• JDK (Java Development Kit) 1.0 released in January 23, 1996.
• Many more versions was released later on.
• Java SE 10 was released in March 20, 2018

Fig 2: Oak Tree[2]

6
JAVA-Editions
Java Editions
• J2SE (Java Standard Edition)
• J2ME(Java Mobile Applications)
• J2EE(Java Enterprise Applications)

Tools you need to learn JAVA


• Linux 7.1 or Windows XP/Vista/7/8/10 operating system.
• Java JDK
• Microsoft Notepad or any other text editor

7
JAVA FEATURES

Fig 3: Features of Java[3]


8
Simple

Java is very simple and easy to learn because :


• Java inherits the C/C++ syntax and many of the object oriented features of C++.
• Java has removed many complicated and rarely-used features, for example, explicit
pointers, operator overloading, etc.
• There is no need to remove unreferenced objects because there is an Automatic
Garbage Collection in Java.

9
Object Oriented
• Java is an object-oriented programming
language. Everything in Java is an
object. Object-oriented means we
organize our software as a combination
of different types of objects that
incorporates both data and behavior.
• Object-oriented programming (OOPs) is
a methodology that simplifies software
development and maintenance by
providing some rules.

Fig 4: OOPS Concept[4]


10
Platform Independent
• Java is platform independent because it is different from other languages like C, C++, etc.
which are compiled into platform specific machines while Java is a write once, run
anywhere language. A platform is the hardware or software environment in which a
program runs.
• Java is platform independent due to Java byte code.

Fig 5: Platform Independent[5]

11
Secured

• Java is best known for its security. With Java, we can develop virus-free systems.
Java is secured because:
• No explicit pointer
• Java Programs run inside a virtual machine sandbox
• Classloader
• Bytecode Verifier
• Security Manager

12
Robust

• Robust simply means strong. Java is robust because:


• It uses strong memory management.
• There is a lack of pointers that avoids security problems.
• There is automatic garbage collection in java.
• There are exception handling and the type checking mechanism in Java. All these
points make Java robust.

13
Architecture-neutral

• Java is architecture neutral because there are no implementation dependent features,


for example, the size of primitive types is fixed.
• In C programming, int data type occupies 2 bytes of memory for 32-bit architecture
and 4 bytes of memory for 64-bit architecture. However, it occupies 4 bytes of
memory for both 32 and 64-bit architectures in Java.

14
Portable
• Java is portable because it facilitates you to carry the Java bytecode to any platform.
It doesn't require any implementation.

Fig 6: Portable[6]

15
High Performance
• Java is faster than other traditional interpreted programming languages because Java
bytecode is "close" to native code. It is still a little bit slower than a compiled
language (e.g., C++). Java is an interpreted language that is why it is slower than
compiled languages, e.g., C, C++, etc.

Fig 7: High Performance[7]

16
Distributed

• Java is distributed because it facilitates users to create distributed applications in


Java.
• It handles TCP/IP protocols.
• Java supports Remote Method Invocation (RMI) which enables a program to invoke
methods across a network.

17
Multi-threaded

• A thread is like a separate program, executing concurrently. We can write Java


programs that deal with many tasks at once by defining multiple threads.
• The main advantage of multi-threading is that it doesn't occupy memory for each
thread. It shares a common memory area. Threads are important for multi-media,
Web applications, etc.

18
Dynamic

• Java is a dynamic language. It supports dynamic loading of classes. It means classes


are loaded on demand. It also supports functions from its native languages, i.e., C
and C++.
• Java supports dynamic compilation and automatic memory management (garbage
collection).

19
References
• Fig 1: https://www.slideshare.net/AndriyRymar/latest-java
• Fig 2: https://www.javatpoint.com/history-of-java
• Fig 3: https://www.javatpoint.com/features-of-java
• Fig 4: https://vishmy1.blogspot.com/2019/09/what-are-concept-of-oops-in-java.html
• Fig 5: http://learnfromexamples.com/how-java-is-platform-independent/
• Fig 6: http://www.freetimestudy.com/Features_of_ava.php
• Fig 7: https://onlinecoursebay.com/high-performance-java-udemy-free-download/

20
References Contd.
• https://www.tutorialspoint.com/What-are-the-major-features-of-Java-programming
• https://www.javatpoint.com/features-of-java

21
THANK YOU

22

You might also like