SlideShare a Scribd company logo
Lecture 1
Introduction to java
History
• Prior to C, Programmers had to sacrifice
• Example:
FORTRAN  efficient for scientific applications BUT not very good
for system code.
BASIC easy to learn BUT not very powerful and not good for large
programs
• C started with an older language called BCPL developed by Martin
Richards.
• BCPL influenced a language called B, invented by Ken Thompson,
which led to the development of C in the 1970s.
• Answer is Complexity
• Increasing Complexity  better ways to manage that
complexity.
• C is one of the world’s great programming languages is
limited to handle complexity.
• “C with classes” was invented by Bjarne Stroustrup in
1979
• Later: “C with classes”  C++ (C foundation with OOP
concepts)
C Is perfect But !!
Not Yet
…
Have we reached !!!!!!
Do we ever !!!!!!
!!!!!
About Java
• Few years later the World Wide Web and the Internet
reached a critical situation
• C and C++ (and most other languages) are designed to be
compiled for a specific target.
• Another revolution in programming.
Need for a
platform-
independent
• Java derives much of its character from C and C++
• By Sun Microsystems by James Gosling in 1995.
• Java TO Internet programming .
• Multiple configurations with various types of platforms.
For example:
-> J2SE for Standard Applications
-> J2EE for Enterprise Applications
-> J2ME for Mobile Applications.
Java Creation
Common acronyms in Java
• JDK : Java development Kit (code, debug, test, run, compile)
• JRE : Java Runtime Environment (run)
• JVM : Java Virtual Machine
• JIT : Just In Time compiler
• ByteCode & Class File
Java is too strong to be ignored
• C# was created by Microsoft to support .NET
Framework
• C# is closely related to Java.
• Both share same general syntax, support distributed
programming, and utilize the same object model.
• Overall “look and feel” of C# and Java is very similar.
ByteCode : Magic of Java
• Output of a Java compiler is not executable code It is a
bytecode
• Bytecode is a highly optimized set of instructions to be
executed by the Java run-time system
• JVM  interpreter for bytecode
• JVM will differ from platform to platform
STILL all understand the same Java bytecode
Speed Issue !!
Do you think which is faster, Compiled or
interpreted code ???
with Java, bytecode is highly optimized, So
Java executes programs much faster than
you might expect.
• Object Oriented language
• Platform Independent
• Secure
• Portable
• Robust
• Multithreaded −
• Interpreted
• High Performance
• Distributed
• Dynamic
Why Java ??
Evolution of Java
• Java 1.0, later Java 1.1 by Java designers
• Next major release is Java 2.0 (Java Modern Age)
• Java 2 (Java 1.2) added new features, such as Swing and
the Collections Framework, and it enhanced JVM
• There was Java 1.3 and 1.4 with further enhancements
• J2SE 5 was revolutionary with JDK 5
• J2SE 6 with no major features
• Java SE 7 was the first major release of Java since Sun
Microsystems was acquired by Oracle
• Java SE 8 is the latest release
Conventions in java
• Case sensitive
• Upper Case first letters in class names..Lower case first letters n
method names
• In Java, all code must be inside a class.
• Name of the main class should match the name of the file that holds
the program.
• Java program processing starts from the main() method
public static void main(String args[])
• Comments in java:
/* This is my first java program.
* This is a multi-line comments. */
// This is a single line comment
https://www.guru99.com/difference-between-jdk-jre-jvm.html#2
Links to help
Thank You ….


More Related Content

PPTX
OOP - Lecture02 - Introduction to Java.pptx
PPTX
Java Introduction
PPTX
Java (1)
PPT
Introduction to Core Java feature and its characteristics
PPTX
Java Basics
PPTX
1.Intro--Why Java.pptx
PPT
The Evolution of Java
PPTX
Java programming Introduction | Java basic architecture
OOP - Lecture02 - Introduction to Java.pptx
Java Introduction
Java (1)
Introduction to Core Java feature and its characteristics
Java Basics
1.Intro--Why Java.pptx
The Evolution of Java
Java programming Introduction | Java basic architecture

Similar to Manually exercising input combinations on the bench or with a microcontroller (20)

PPTX
Java (Part 2) unit 1
DOCX
java full 1 (Recovered).docx
PPT
JAVA INTRODUCTION
PPTX
basic core java up to operator
DOCX
java completed units.docx
PPTX
Introduction to JAVA
PPTX
java basics concepts and the keywords needed
PPTX
OOP-JAVA-UNIT-1-PPT updated.pptx object oriented programming language using java
DOCX
java full 1.docx
DOCX
java full.docx
PPTX
ITC 110 Week 9 - Introduction to Porgramming .pptx
PPTX
Object Oriented concept-JAVA-Module-1-PPT.pptx
PPTX
Lesson1 intro
PPTX
Lesson1 intro
PPTX
Introduction to java
PPTX
Introduction to Java(1) - CPPT+opy.Jpptx
PPT
PPS Java Overview Unit I.ppt
PPT
PPS Java Overview Unit I.ppt
PPTX
1 java programming- introduction
PDF
Lecture-01 _Java Introduction CS 441 Fast
Java (Part 2) unit 1
java full 1 (Recovered).docx
JAVA INTRODUCTION
basic core java up to operator
java completed units.docx
Introduction to JAVA
java basics concepts and the keywords needed
OOP-JAVA-UNIT-1-PPT updated.pptx object oriented programming language using java
java full 1.docx
java full.docx
ITC 110 Week 9 - Introduction to Porgramming .pptx
Object Oriented concept-JAVA-Module-1-PPT.pptx
Lesson1 intro
Lesson1 intro
Introduction to java
Introduction to Java(1) - CPPT+opy.Jpptx
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
1 java programming- introduction
Lecture-01 _Java Introduction CS 441 Fast
Ad

Recently uploaded (20)

PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPT
Mechanical Engineering MATERIALS Selection
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
web development for engineering and engineering
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
additive manufacturing of ss316l using mig welding
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPT
Project quality management in manufacturing
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Construction Project Organization Group 2.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
573137875-Attendance-Management-System-original
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Foundation to blockchain - A guide to Blockchain Tech
Mechanical Engineering MATERIALS Selection
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Internet of Things (IOT) - A guide to understanding
web development for engineering and engineering
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
R24 SURVEYING LAB MANUAL for civil enggi
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
additive manufacturing of ss316l using mig welding
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Project quality management in manufacturing
CH1 Production IntroductoryConcepts.pptx
Construction Project Organization Group 2.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
573137875-Attendance-Management-System-original
Ad

Manually exercising input combinations on the bench or with a microcontroller

  • 2. History • Prior to C, Programmers had to sacrifice • Example: FORTRAN  efficient for scientific applications BUT not very good for system code. BASIC easy to learn BUT not very powerful and not good for large programs • C started with an older language called BCPL developed by Martin Richards. • BCPL influenced a language called B, invented by Ken Thompson, which led to the development of C in the 1970s.
  • 3. • Answer is Complexity • Increasing Complexity  better ways to manage that complexity. • C is one of the world’s great programming languages is limited to handle complexity. • “C with classes” was invented by Bjarne Stroustrup in 1979 • Later: “C with classes”  C++ (C foundation with OOP concepts) C Is perfect But !!
  • 4. Not Yet … Have we reached !!!!!! Do we ever !!!!!! !!!!!
  • 5. About Java • Few years later the World Wide Web and the Internet reached a critical situation • C and C++ (and most other languages) are designed to be compiled for a specific target. • Another revolution in programming. Need for a platform- independent
  • 6. • Java derives much of its character from C and C++ • By Sun Microsystems by James Gosling in 1995. • Java TO Internet programming . • Multiple configurations with various types of platforms. For example: -> J2SE for Standard Applications -> J2EE for Enterprise Applications -> J2ME for Mobile Applications. Java Creation
  • 7. Common acronyms in Java • JDK : Java development Kit (code, debug, test, run, compile) • JRE : Java Runtime Environment (run) • JVM : Java Virtual Machine • JIT : Just In Time compiler • ByteCode & Class File
  • 8. Java is too strong to be ignored • C# was created by Microsoft to support .NET Framework • C# is closely related to Java. • Both share same general syntax, support distributed programming, and utilize the same object model. • Overall “look and feel” of C# and Java is very similar.
  • 9. ByteCode : Magic of Java • Output of a Java compiler is not executable code It is a bytecode • Bytecode is a highly optimized set of instructions to be executed by the Java run-time system • JVM  interpreter for bytecode • JVM will differ from platform to platform STILL all understand the same Java bytecode
  • 10. Speed Issue !! Do you think which is faster, Compiled or interpreted code ??? with Java, bytecode is highly optimized, So Java executes programs much faster than you might expect.
  • 11. • Object Oriented language • Platform Independent • Secure • Portable • Robust • Multithreaded − • Interpreted • High Performance • Distributed • Dynamic Why Java ??
  • 12. Evolution of Java • Java 1.0, later Java 1.1 by Java designers • Next major release is Java 2.0 (Java Modern Age) • Java 2 (Java 1.2) added new features, such as Swing and the Collections Framework, and it enhanced JVM • There was Java 1.3 and 1.4 with further enhancements • J2SE 5 was revolutionary with JDK 5 • J2SE 6 with no major features • Java SE 7 was the first major release of Java since Sun Microsystems was acquired by Oracle • Java SE 8 is the latest release
  • 13. Conventions in java • Case sensitive • Upper Case first letters in class names..Lower case first letters n method names • In Java, all code must be inside a class. • Name of the main class should match the name of the file that holds the program. • Java program processing starts from the main() method public static void main(String args[]) • Comments in java: /* This is my first java program. * This is a multi-line comments. */ // This is a single line comment

Editor's Notes

  • #2: Prior to the invention of C, computer languages were generally designed either as academic exercises or by bureaucratic committees. C is different. It was designed, implemented, and developed by real, working programmers, reflecting the way that they approached the job of programming.
  • #7: JDK => (JRE, JVM) for programmers to develop java apps all JDK versions come bundled with JRE JRE => libraries, class loader, JVM JVM=> converts Java bytecode into machine language. part of JRE. It cannot be separately downloaded and installed. To install JVM, you need to install JRE.
  • #11: Platform Independent: compiled to bytecode and interpreted by the Virtual Machine (JVM) on whichever platform it is being run on. Secure − With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are based on public-key encryption. Architecture-neutral − Java compiler generates an architecture-neutral object file format, which makes the compiled code executable on many processors, with the presence of Java runtime system. Portable − Being architecture-neutral and having no implementation dependent aspects of the specification makes Java portable. Compiler in Java is written in ANSI C with a clean portability boundary, which is a POSIX subset. Robust − Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking and runtime checking. Multithreaded − With Java's multithreaded feature it is possible to write programs that can perform many tasks simultaneously. This design feature allows the developers to construct interactive applications that can run smoothly. Interpreted − Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light-weight process. High Performance − With the use of Just-In-Time compilers, Java enables high performance. Distributed − Java is designed for the distributed environment of the internet. Dynamic − Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.