PROGRAMMING IN JAVA. INTRODUCTION TO JAVA  Java is a general purpose computer programming language that is concurrent, class-based, object- oriented.

Slides:



Advertisements
Similar presentations
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
Advertisements

1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
The Life and Times of Andrew Bardee and Chris Cornelius Programming Languages Fall 2011.
IC211 Object Oriented Programming Overview of Java.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Introduction to Java Kiyeol Ryu Java Programming Language.
For more Lectures and Notes Visit
Session-02. Objective In this session you will learn : What is Class Loader ? What is Byte Code Verifier? JIT & JAVA API Features of Java Java Environment.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Java program.
Java program. Java Tutorial Java technology is widely used currently. Let's start learning of java from basic questions like what is java, where it is.
Java Introduction 劉登榮 Deng-Rung Liu 87/7/15. Outline 4 History 4 Why Java? 4 Java Concept 4 Java in Real World 4 Language Overview 4 Java Performance!?
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Chapter 1 Coding Introduction.
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Sadegh Aliakbary Sharif University of Technology Spring 2011.
Sadegh Aliakbary. Copyright ©2014 JAVACUP.IRJAVACUP.IR All rights reserved. Redistribution of JAVACUP contents is not prohibited if JAVACUP.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Java Beserkers Group 4. Start of Java Development began on June of 1991 by a group of computer scientist at the Sun Mircrosystems Company Development.
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
INTRODUCTION TO JAVA AND ANDROID. Slide 2 Our Ecosystem Java Eclipse Android SDK.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
We will talking about story of JAVA language. By Kristsada Songpartom.
Java Basics 1 Brief History of Java and Overview of Langauge.
The History of Java By: Drew Fleming. Before I Start Teaching You Guys Important things to keep in mind Java is not the next step in C++ progression Java.
Java Example Presentation of a Language. Background Conception: Java began as a language for embedded processors in consumer electronics, such as VCR,
Introduction Mehdi Einali Advanced Programming in Java 1.
introductory lecture on java programming
Java – in context Main Features From Sun Microsystems ‘White Paper’
JAVA Ekapap Julnonyang When it was implemented? Developed by Sun Microsystems. The first public implementation was Java 1.0 in 1995 The language.
1 Introduction to Java. 2 * 10% Assignments/ class participation * 10% Pop Quizzes * 05% Attendance * 25% Mid Term * 50% Final Term.
การเขียนโปรแกรมภาษา จาวา Java Programming อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา Chapter 1.
Introduction to Programming 1 1 2Introduction to Java.
Introduction to JAVA Programming
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
JAVA TRAINING IN NOIDA. Introduction to Java:  Java training in noida is a general-purpose computer programming language that is concurrent, class-based,
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Chapter 1 Coding Introduction.
Object Oriented Programming in
Java™ 2 Platform Getting Started.
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Unit-1 JAVA Programming.
Chapter 1 Introduction to Computers, Programs, and Java
The Java Programming Language
UCSC All rights reserved
Introduction Enosis Learning.
An Overview of Java.
Chapter 1 FOUNDATIONS OF JAVA
JAVA TUTORIALS.
Introduction Enosis Learning.
Chapter 1 Coding Introduction.
آشنایی با جاوا Introduction to Java
Advanced Programming Fall 2017.
(Computer fundamental Lab)
Java History, Editions, Version Features
By Rajanikanth B Overview Of Java By Rajanikanth B
Java Evolution Java History. Java Features.
Introducing Java.
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
from Lutz Dietrich and Hans Kluge
Presentation transcript:

PROGRAMMING IN JAVA

INTRODUCTION TO JAVA  Java is a general purpose computer programming language that is concurrent, class-based, object- oriented.  Java was developed by James Gosling at Sun Microsystems. Goslings designed Java with a c / c++ style syntax that system and application programmers would find familiar.  The latest version of Java is Java 10

HISTORY OF JAVA  James Gosling, Mike Sheridan and Patrick Naughton initiated the Java language project in June 1991.Which is now has been acquired by Oracle Corporation.  The language was initially called Oak, Later the project went by the name Green and was finally renamed as Java from Java coffee.

 Java was originally designed for developing the electronics things like VCR, television etc but it was too advanced for the digital cable television industry at that time.  Sun Microsystems released the first public implementation as Java1.0 in It promised “WRITE ONCE, RUN ANYWHERE”(WORA) providing no cost run time on popular platforms.

PRINCIPLES These are the primary goals in creation of Java language:-  “simple,object- oriented, and familiar”.  “robust and secure”.  “architecture – neutral and portable”.  “high performance”.  “interpreted, threated and dynamic”.

EDITIONS OF JAVA  Java card for smart cards.  Java platform, Micro edition (Java ME):- targeting environments with limited resources.  Java platform, Standard edition(Java SE):- targeting workstation environments.  Java platform Enterprise edition(Java EE):- targeting internet environments.

KEY FEATURES OF JAVA  Simple and Secure  Object- oriented  Platform independent and High performance  Robust and Portable  Dynamic and Interpreted  Architecture neutral  Multithread and Distributed

EVOLUTION OF JAVA FROM C++  In 1991, Sun Microsystems began to investigate how it might exploit the growing market of consumer electronics.  James Goslings was investigating the possibility of creating a hardware independent software platform for this above purpose  Initially, he used c++, but soon abandoned c++ and began the creation of a new language.

 He decided that he wanted to base his language on the highly successful c++, but that he would incorporate only those features of c++ that were deemed worthwhile.  He eliminated some of the features from c++, they were:- Multiple Inheritance Automatic type conversion Pointers C++ memory management scheme.

 Although the Oak technology was intriguing, the market was not quite ready for it.  With the advent of the web and emergence of browsers brought the Oak into existence and it was renamed as Java.  Sun created its browser, called Hot Java, using Java.

 By 1995, Java ran on SPARC Solaris, Windows NT, Windows 95, and Linux.  By fall 1995, Java beta 1 was released and the Netscape navigator 2.0 browser incorporated Java.  Java 1.0 was officially released in jan 1996.

SECURE FEATURES OF JAVA COMPARED TO C++  Java does not supports pointers, structure, unions, templates, operator overloading etc. But c++ supports all.  The lack of pointers is to stop the Java programs from referencing memory locations illegally, and also enables garbage collection to be automatically carried out by JVM.  Pointers does not serve the purpose of being secure.  This makes it impossible to accidentally reference memory that belongs to other programs or the kernel.

1.COMPILE TIME CHECKING  It is more secure because of the ability of compile time checking. For an instance, if a method which is unauthorized and wanting to access a variable which is private, then the JVM catches the error during compile time. For avoiding system crash JVM catches more number of errors than c++.

2.ACCESS SPECIFIC KEYWORDS  It is another benefit for Java security and it is nothing but having an access specific keyword.  If access to a method is what programmer wants to give to other functions then public keyword must be used.  If the programmer wants to hide the information then private keyword must be used.  For avoiding data to be overridden the programs can use the final keyword.

3.OWN MEMORY MANAGEMENT  The memory management mechanism is unique and is owned by Java unlike C ++.  There is no need for manual intervention for garbage collection because everything is handled automatically. There is no need for a headache to free the memories.It drastically reduces the programmer overhead. Therefore the programmers hand must be free from memory management.  Relieving the memory in Java is the job of JVM.

ADVANTAGES OF JAVA OVER C++  Java supports Automatic Garbage Collection. It does not use/support destructors as c++ does.  It is platform independent because the codes in java are interpreted by Java virtual Machine on whichever platform it is being executed.

REAL TIME EXAMPLE OF JAVA  Most major companies use java in one way or the other. Many server-side applications are written in java to process tens of millions of request per day,high- frequency trading applications are also written in java.  It is used in Android apps, from scientific application to financial applications like electronic trading systems, from games like minecraft to desktop applications like Eclipse, Net beans etc. All are written in Java programming language, with Google’s Android API, which is similar to JDK.

 By:-  Soumyashree.R.K(17BCAR3012)  Vini.S.P(17BCAR3013)  Goutham.S(17BCAR3015) Thank you