SlideShare une entreprise Scribd logo
1  sur  18
Java is a programming language created by
James Gosling from Sun Microsystem (Sun)
in 1991. The first publicy available version
of Java (Java 1.0) was released in 1995.
Sun microsystems was acquired by the
Oracle Corporation in 2010. Oracle has
now the steermanship for Java.
Java is a high-level language and software-only platform. It
runs on more than 50 million personal computers and on
billions of devices worldwide. 9 million developers have
created Java applications in all major industries.
Java also allows you to play online games, chat with people
around the world, calculate your mortgage interest, and
view images in 3D, just to name a few. It's also integral to
the intranet applications and other e-business solutions
that are the foundation of corporate computing.
Trying to design a very basic
chat room in JAVA RMI. My
design brief is that all clients
messages should be displayed to
other clients and also captured
and displayed on the server. I
have been able to get as far as
getting all client messages to
display on the server side, but I
am having difficulty in being
able to display the messages
sent by clients to other clients. I
have constructed a GUI for
clients in netbeans for them to
type and receive text. Does
anyone know of any ways I can
go about solving this issue?
The Java programming language is a high-level language that
can be characterized by all of the following buzzwords:
• Architecture neutral
•Portable
•High performance
•Robust
•Secure
•Object oriented
•Distributed
•Simple
•Multithreaded
•Dynamic
In the Java programming language, all source code is first
written in plain text files ending with
the .java extension. Those source files are then compiled
into .class files by the javac compiler. A .class file does
not contain code that is native to your processor; it
instead contains bytecodes — the machine language of the
Java Virtual Machine (Java VM). The java launcher tool then
runs your application with an instance of the Java Virtual
Machine.
JAVA LANGUAGE
OR
The two main components of
the Java platform are the Java
Application Programming
Interface (API), which is a
library of Java command lines
and the Java Virtual Machine
(JVM) that interprets Java
A platform is the hardware or
software environment in
which a program runs. We've
already mentioned some of
the most popular platforms
like Microsoft Windows,
Linux, Solaris OS, and Mac
OS. Most platforms can be
described as a combination
of the operating system and
underlying hardware. The
Java platform differs from
most other platforms in that
it's a software-only platform
that runs on top of other
hardware-based platforms.
You've already been introduced to the Java
Virtual Machine; it's the base for the Java
platform and is ported onto various hardware-
based platforms.
The API is a large collection of ready-made
software components that provide many useful
capabilities. It is grouped into libraries of related
classes and interfaces; these libraries are known
as packages.
As a platform-independent
environment, the Java
platform can be a bit slower
than native code. However,
advances in compiler and
virtual machine technologies
are bringing performance
close to that of native code
without threatening portability.
10 REASONS WHY JAVA
ROCKS MORE THAN EVER
Part 1: The Java Compilerr
The compiler is one of the things we take
for granted in any language, without
thinking about its great features. In Java,
unlike C++, you can simply compile your
code without thinking too much about
linking, optimisation and all sorts of other
usual compiler features. This is partially
due to the JIT (Just In Time compiler),
which does further compilation work at
runtime. Part 2: The Core API
The JDK’s core API consists of a very
solid, stable and well-understood set of
libraries. While many people complain
about the lack of functionality in this area
(resorting to Google Guava or Apache
Commonss, people often forget that the
core API is still the one that is underneath
all those extensions. Again, from a C++
perspective, this is a truly luxurious
situation.
Part 3: Open Source
In this section, ZeroTurnaround’s
Geert Bevin‘s mind-set aligns well
with our own at Data Geekery when
it comes to the spirit of Open
Source – no matter whether this is
about free-as-in-freedom, or free-as-
in-beer, the point is that so many
things about Java are “open”. We’re
all in this together.
Part 4: The Java Memory Model
Again, a very interesting point of
view from someone with a solid C++
background. We’re taking many
things for granted as Java has had a
very good threading and memory
model from the beginning, which
was corrected only once in the JDK
1.5 in 2004, and which has built a
solid grounds for newer API like
actor-based ones, Fork/JOIN, etc.
Part 5: High-Performance
JVM
The JVM is the most obvious
thing to talk about it has
allowed for so many
languages to work on so
many hardware
environments, and it runs so
fast, nowadays!
Part 6: Bytecode
Bytecode is a vendor-independent
abstraction of machine code, which
is very predi ctable and can be
generated, manipulated, and
transformed by various
technologies. We’ve recently had a
guest post by Dr. Ming-Yee Iu who
has shown how bytecode
transformations can be used to
emulate LINQ in Java. Let’s hear it
Part 7: Intelligent IDEs
15 years ago, developing software worked quite
differently. People can write assembler or C programs
with vi or Notepad. But when you’re writing a very
complex enterprise-scale Java program, you wouldn’t
want to miss IDEs, nowadays. We’ve blogged
about various reasons why SQLJ has died. The lack of
proper IDE support was one of them.
Part 8: Profiling Tools
Remember when Oracle released Java Mission
Control for free developer use with the JDK
7u40? Profiling is something very very
awesome. With modern profilers, you can
know exactly where your bottleneck is by simply
measuring every aspect of your JVM. You don’t
have to guess, you can know.
Part 9: Backwards Compatibility
While backwards-compatibility has
its drawbacks, too, it is still
very impressive how long the Java
language, the JVM, and the JDK have
existed so far without introducing
any major backwards-compatibility
regressions. The only thing that
comes to mind is the introduction
of keywords like assert and enum.
Part 10: Maturity With Innovation
In fact, this article is a summary of all
the others, saying that Java has been a
very well-designed and mature
platform from the beginning without
ever ceasing to innovate. And it’s true.
With Java 8, a great next step has been
published that will – again – change
the way the enterprise perceives
software development for good.
HOW TO WRITE YOUR
FIRST PROGRAM IN JAVA
InordertostartwritingprogramsinJava,setupyour
workenvironment.ManyprogrammersuseIntegrated
DevelopmentEnvironments(IDEs)suchasEclipseand
NetbeansfortheirJavaprogramming,butonecanwrite
aJavaprogramandcompileitwithoutbloatedIDEs.
Any sort of Notepad-like program will
suffice for programming in Java.Hardcore
programmers sometimes prefer to use
text editors that are within the terminal
such as vim and emacs. A very good text
editor that can be installed on both a
Windows machine and on a linux-based
machine (Mac, Ubuntu, etc.) is Sublime
Text, which is what we will be using in
this tutorial.
Make sure that you
have the Java Software
Development
KIT installed. You will
need this for compiling
your program.
We will first create a program that prints
"Hello World." In your text editor, create
a new file and save it as
"HelloWorld.java". HelloWorld is your
class name and you will need your class
name to be the same name as your file.
Declare your class and your main
method. The main method public
static void main(String[] args) is the
method that will be executed when
the programming is running.
Write the line of
code that will
print out "Hello
World."
Put it all
together
Save your file and open
up command prompt or
terminal to compile the
program
Run the
program.
Congratulations,
you have made
your first Java
program!
MATTHEW CALIFF CALIP
MARIFER ABAO
9
S
S
C
N
E
U
M
A
N
N
J
A
V
A
P
R
O
G
R
A
M
M
I
N
G

Contenu connexe

Tendances (20)

Java
JavaJava
Java
 
Java Intro
Java IntroJava Intro
Java Intro
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
 
J introtojava1-pdf
J introtojava1-pdfJ introtojava1-pdf
J introtojava1-pdf
 
Programming in Java
Programming in JavaProgramming in Java
Programming in Java
 
A Comparison of .NET Framework vs. Java Virtual Machine
A Comparison of .NET Framework vs. Java Virtual MachineA Comparison of .NET Framework vs. Java Virtual Machine
A Comparison of .NET Framework vs. Java Virtual Machine
 
Core Java
Core JavaCore Java
Core Java
 
JAVA First Day
JAVA First DayJAVA First Day
JAVA First Day
 
Ch2
Ch2Ch2
Ch2
 
Java Programming : introduction
Java Programming : introductionJava Programming : introduction
Java Programming : introduction
 
Industrial Training Report on Java Technology.
Industrial Training Report on Java Technology.Industrial Training Report on Java Technology.
Industrial Training Report on Java Technology.
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Java presentation
Java presentationJava presentation
Java presentation
 
Java Programming Basics
Java Programming BasicsJava Programming Basics
Java Programming Basics
 
Jalimo Slides Linuxtag2008
Jalimo Slides Linuxtag2008Jalimo Slides Linuxtag2008
Jalimo Slides Linuxtag2008
 
Why java is important in programming language?
Why java is important in programming language?Why java is important in programming language?
Why java is important in programming language?
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan Sanidhya
 
Industrial Training report on java
Industrial  Training report on javaIndustrial  Training report on java
Industrial Training report on java
 
perl-java
perl-javaperl-java
perl-java
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
 

En vedette

Sunspot Final
Sunspot FinalSunspot Final
Sunspot Finalpauldeng
 
NetApp OBIEE Phase 1
NetApp OBIEE Phase 1NetApp OBIEE Phase 1
NetApp OBIEE Phase 1Mark West
 
Sun Microsystem OBIEE Strategy
Sun Microsystem OBIEE StrategySun Microsystem OBIEE Strategy
Sun Microsystem OBIEE StrategyMark West
 
Sun Microsystems Puppet Case Study
Sun Microsystems Puppet Case StudySun Microsystems Puppet Case Study
Sun Microsystems Puppet Case StudyPuppet
 
Monitoring Identity Manager by JMX
Monitoring Identity Manager by JMXMonitoring Identity Manager by JMX
Monitoring Identity Manager by JMXTakayuki Okazaki
 
Sun Microsystems
Sun MicrosystemsSun Microsystems
Sun Microsystemsvenkat
 
Solaris Operating System - Oracle
 Solaris Operating System - Oracle Solaris Operating System - Oracle
Solaris Operating System - OracleMalan Amarasinghe
 
Sun Microsystems:Case Studyv1
Sun Microsystems:Case Studyv1Sun Microsystems:Case Studyv1
Sun Microsystems:Case Studyv1Das Sunny
 
basics of computer system ppt
basics of computer system pptbasics of computer system ppt
basics of computer system pptSuaj
 

En vedette (11)

Sunspot Final
Sunspot FinalSunspot Final
Sunspot Final
 
saurav_resume
saurav_resumesaurav_resume
saurav_resume
 
NetApp OBIEE Phase 1
NetApp OBIEE Phase 1NetApp OBIEE Phase 1
NetApp OBIEE Phase 1
 
Sun Microsystem OBIEE Strategy
Sun Microsystem OBIEE StrategySun Microsystem OBIEE Strategy
Sun Microsystem OBIEE Strategy
 
Sun Microsystems Puppet Case Study
Sun Microsystems Puppet Case StudySun Microsystems Puppet Case Study
Sun Microsystems Puppet Case Study
 
Monitoring Identity Manager by JMX
Monitoring Identity Manager by JMXMonitoring Identity Manager by JMX
Monitoring Identity Manager by JMX
 
Sun Microsystems
Sun MicrosystemsSun Microsystems
Sun Microsystems
 
Solaris Operating System - Oracle
 Solaris Operating System - Oracle Solaris Operating System - Oracle
Solaris Operating System - Oracle
 
Sun Microsystems:Case Studyv1
Sun Microsystems:Case Studyv1Sun Microsystems:Case Studyv1
Sun Microsystems:Case Studyv1
 
basics of computer system ppt
basics of computer system pptbasics of computer system ppt
basics of computer system ppt
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 

Similaire à Java Programming (M&M)

Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkMohit Belwal
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technologysshhzap
 
Notes of java first unit
Notes of java first unitNotes of java first unit
Notes of java first unitgowher172236
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
10 interesting things about java
10 interesting things about java10 interesting things about java
10 interesting things about javakanchanmahajan23
 
Introducción a la progrogramación orientada a objetos con Java
Introducción a la progrogramación orientada a objetos con JavaIntroducción a la progrogramación orientada a objetos con Java
Introducción a la progrogramación orientada a objetos con JavaFacultad de Ciencias y Sistemas
 
java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docxvikasbagra9887
 
Java Introduction | PDF
Java Introduction |  PDFJava Introduction |  PDF
Java Introduction | PDFGeekster
 
Software environment
Software environmentSoftware environment
Software environmentKinnudj Amee
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Mr. Akaash
 
What is Codename One - Transcript.pdf
What is Codename One - Transcript.pdfWhat is Codename One - Transcript.pdf
What is Codename One - Transcript.pdfShaiAlmog1
 
MODULE_1_The History and Evolution of Java.pptx
MODULE_1_The History and Evolution of Java.pptxMODULE_1_The History and Evolution of Java.pptx
MODULE_1_The History and Evolution of Java.pptxVeerannaKotagi1
 
TechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb
 
Java the reason behind its never ending demand
Java the reason behind its never ending demandJava the reason behind its never ending demand
Java the reason behind its never ending demandDeepika Chaudhary
 

Similaire à Java Programming (M&M) (20)

Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
Java presentation
Java presentationJava presentation
Java presentation
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
 
Core java slides
Core java slidesCore java slides
Core java slides
 
Notes of java first unit
Notes of java first unitNotes of java first unit
Notes of java first unit
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
10 interesting things about java
10 interesting things about java10 interesting things about java
10 interesting things about java
 
Introducción a la progrogramación orientada a objetos con Java
Introducción a la progrogramación orientada a objetos con JavaIntroducción a la progrogramación orientada a objetos con Java
Introducción a la progrogramación orientada a objetos con Java
 
java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docx
 
Java Introduction | PDF
Java Introduction |  PDFJava Introduction |  PDF
Java Introduction | PDF
 
Core Java-1 (1).pdf
Core Java-1 (1).pdfCore Java-1 (1).pdf
Core Java-1 (1).pdf
 
Java session2
Java session2Java session2
Java session2
 
Software requirement
Software requirementSoftware requirement
Software requirement
 
Software environment
Software environmentSoftware environment
Software environment
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 
What is Codename One - Transcript.pdf
What is Codename One - Transcript.pdfWhat is Codename One - Transcript.pdf
What is Codename One - Transcript.pdf
 
MODULE_1_The History and Evolution of Java.pptx
MODULE_1_The History and Evolution of Java.pptxMODULE_1_The History and Evolution of Java.pptx
MODULE_1_The History and Evolution of Java.pptx
 
BlueJ Two
BlueJ TwoBlueJ Two
BlueJ Two
 
TechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdf
 
Java the reason behind its never ending demand
Java the reason behind its never ending demandJava the reason behind its never ending demand
Java the reason behind its never ending demand
 

Dernier

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Dernier (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Java Programming (M&M)

  • 1.
  • 2. Java is a programming language created by James Gosling from Sun Microsystem (Sun) in 1991. The first publicy available version of Java (Java 1.0) was released in 1995. Sun microsystems was acquired by the Oracle Corporation in 2010. Oracle has now the steermanship for Java.
  • 3. Java is a high-level language and software-only platform. It runs on more than 50 million personal computers and on billions of devices worldwide. 9 million developers have created Java applications in all major industries. Java also allows you to play online games, chat with people around the world, calculate your mortgage interest, and view images in 3D, just to name a few. It's also integral to the intranet applications and other e-business solutions that are the foundation of corporate computing.
  • 4. Trying to design a very basic chat room in JAVA RMI. My design brief is that all clients messages should be displayed to other clients and also captured and displayed on the server. I have been able to get as far as getting all client messages to display on the server side, but I am having difficulty in being able to display the messages sent by clients to other clients. I have constructed a GUI for clients in netbeans for them to type and receive text. Does anyone know of any ways I can go about solving this issue?
  • 5. The Java programming language is a high-level language that can be characterized by all of the following buzzwords: • Architecture neutral •Portable •High performance •Robust •Secure •Object oriented •Distributed •Simple •Multithreaded •Dynamic In the Java programming language, all source code is first written in plain text files ending with the .java extension. Those source files are then compiled into .class files by the javac compiler. A .class file does not contain code that is native to your processor; it instead contains bytecodes — the machine language of the Java Virtual Machine (Java VM). The java launcher tool then runs your application with an instance of the Java Virtual Machine.
  • 7. OR
  • 8.
  • 9. The two main components of the Java platform are the Java Application Programming Interface (API), which is a library of Java command lines and the Java Virtual Machine (JVM) that interprets Java
  • 10. A platform is the hardware or software environment in which a program runs. We've already mentioned some of the most popular platforms like Microsoft Windows, Linux, Solaris OS, and Mac OS. Most platforms can be described as a combination of the operating system and underlying hardware. The Java platform differs from most other platforms in that it's a software-only platform that runs on top of other hardware-based platforms.
  • 11. You've already been introduced to the Java Virtual Machine; it's the base for the Java platform and is ported onto various hardware- based platforms. The API is a large collection of ready-made software components that provide many useful capabilities. It is grouped into libraries of related classes and interfaces; these libraries are known as packages. As a platform-independent environment, the Java platform can be a bit slower than native code. However, advances in compiler and virtual machine technologies are bringing performance close to that of native code without threatening portability.
  • 12. 10 REASONS WHY JAVA ROCKS MORE THAN EVER Part 1: The Java Compilerr The compiler is one of the things we take for granted in any language, without thinking about its great features. In Java, unlike C++, you can simply compile your code without thinking too much about linking, optimisation and all sorts of other usual compiler features. This is partially due to the JIT (Just In Time compiler), which does further compilation work at runtime. Part 2: The Core API The JDK’s core API consists of a very solid, stable and well-understood set of libraries. While many people complain about the lack of functionality in this area (resorting to Google Guava or Apache Commonss, people often forget that the core API is still the one that is underneath all those extensions. Again, from a C++ perspective, this is a truly luxurious situation.
  • 13. Part 3: Open Source In this section, ZeroTurnaround’s Geert Bevin‘s mind-set aligns well with our own at Data Geekery when it comes to the spirit of Open Source – no matter whether this is about free-as-in-freedom, or free-as- in-beer, the point is that so many things about Java are “open”. We’re all in this together. Part 4: The Java Memory Model Again, a very interesting point of view from someone with a solid C++ background. We’re taking many things for granted as Java has had a very good threading and memory model from the beginning, which was corrected only once in the JDK 1.5 in 2004, and which has built a solid grounds for newer API like actor-based ones, Fork/JOIN, etc.
  • 14. Part 5: High-Performance JVM The JVM is the most obvious thing to talk about it has allowed for so many languages to work on so many hardware environments, and it runs so fast, nowadays! Part 6: Bytecode Bytecode is a vendor-independent abstraction of machine code, which is very predi ctable and can be generated, manipulated, and transformed by various technologies. We’ve recently had a guest post by Dr. Ming-Yee Iu who has shown how bytecode transformations can be used to emulate LINQ in Java. Let’s hear it
  • 15. Part 7: Intelligent IDEs 15 years ago, developing software worked quite differently. People can write assembler or C programs with vi or Notepad. But when you’re writing a very complex enterprise-scale Java program, you wouldn’t want to miss IDEs, nowadays. We’ve blogged about various reasons why SQLJ has died. The lack of proper IDE support was one of them. Part 8: Profiling Tools Remember when Oracle released Java Mission Control for free developer use with the JDK 7u40? Profiling is something very very awesome. With modern profilers, you can know exactly where your bottleneck is by simply measuring every aspect of your JVM. You don’t have to guess, you can know.
  • 16. Part 9: Backwards Compatibility While backwards-compatibility has its drawbacks, too, it is still very impressive how long the Java language, the JVM, and the JDK have existed so far without introducing any major backwards-compatibility regressions. The only thing that comes to mind is the introduction of keywords like assert and enum. Part 10: Maturity With Innovation In fact, this article is a summary of all the others, saying that Java has been a very well-designed and mature platform from the beginning without ever ceasing to innovate. And it’s true. With Java 8, a great next step has been published that will – again – change the way the enterprise perceives software development for good.
  • 17. HOW TO WRITE YOUR FIRST PROGRAM IN JAVA InordertostartwritingprogramsinJava,setupyour workenvironment.ManyprogrammersuseIntegrated DevelopmentEnvironments(IDEs)suchasEclipseand NetbeansfortheirJavaprogramming,butonecanwrite aJavaprogramandcompileitwithoutbloatedIDEs. Any sort of Notepad-like program will suffice for programming in Java.Hardcore programmers sometimes prefer to use text editors that are within the terminal such as vim and emacs. A very good text editor that can be installed on both a Windows machine and on a linux-based machine (Mac, Ubuntu, etc.) is Sublime Text, which is what we will be using in this tutorial. Make sure that you have the Java Software Development KIT installed. You will need this for compiling your program. We will first create a program that prints "Hello World." In your text editor, create a new file and save it as "HelloWorld.java". HelloWorld is your class name and you will need your class name to be the same name as your file. Declare your class and your main method. The main method public static void main(String[] args) is the method that will be executed when the programming is running. Write the line of code that will print out "Hello World." Put it all together Save your file and open up command prompt or terminal to compile the program Run the program. Congratulations, you have made your first Java program!
  • 18. MATTHEW CALIFF CALIP MARIFER ABAO 9 S S C N E U M A N N J A V A P R O G R A M M I N G