SlideShare uma empresa Scribd logo
1 de 13
Vibrant Technologies
& Computers
java COURSE
Make Career With Us!!
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
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++
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
Applets, Servlets and Applications
• An applet is designed to be embedded in a
Web page, and run by a browser
• Applets run in a sandbox with numerous
restrictions; for example, they can’t read
files and then use the network
• A servlet is designed to be run by a web
server
• An application is a conventional program
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
Java Virtual Machine
• The .class files generated by the compiler are
not executable binaries
– so Java combines compilation and interpretation
• Instead, they contain “byte-codes” to be
executed by the Java Virtual Machine
– other languages have done this, e.g. UCSD Pascal
• This approach provides platform
independence, and greater security
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
HelloWorld (standalone)
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
• Note that String is built in
• println is a member function for the
System.out class
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
Java program layout
• A typical Java file looks like:
import java.awt.*;
import java.util.*;
public class SomethingOrOther {
// object definitions go here
. . .
}
This must be in a file named SomethingOrOther.java !
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
So, what is a class?
• A class consists of
– a collection of fields, or variables, very much
like the named fields of a struct
– all the operations (called methods) that can be
performed on those fields
– can be instantiated
• A class describes objects and operations
defined on those objects
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
Traditionally, source code had to be compiled for the target
hardware and OS platform:
The Java Virtual Machine.
Source.cpp
i386 binary
SPARC binary
PPC binary
Windows
Compiler
Solaris
Compiler
Mac
Compiler
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
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!
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
Java source files (.java) are compiled to Java bytecode (.class)
Bytecode is interpreted on the target platform within a Java Virtual
Machine
The Java Virtual Machine.
Source.java
i386 VM
SPARC VM
PPC VM
Java
Compiler
Java
Bytecode
Source.class
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
Packages
• Like “namespace” in C++
• How to use:
–C++: using namespace xxx
–Java: import xxx, or
import xxx.xx
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
A Simple Java Applet: Drawing a String
– appletviewer only understands
<applet> tags
• Ignores everything else
• Minimal browser
– Executing the applet
• appletviewer WelcomeApplet.html
• Perform in directory containing .class file
1 <html>
2 <applet code="WelcomeApplet.class" width=300 height=30>
3 </applet>
4 </html>
B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
javatraining.vibranttechnologies.co.in
enquiry@vibrantgroup.co.in
javatraining.vibranttechnologies.co.in
Where to Get More Information
Vibrant Group:
www.vibrantgroup.co.in
Vibrant Technologies & Computers
www.vibranttechnologies.co.in/technologies.vibrantgroup.co.
in
Vibrant HR Team
www.hr.vibrangroup.co.in

Mais conteúdo relacionado

Mais de VibrantGroup

Mais de VibrantGroup (8)

Shell Scripting-training-course-navi-mumbai-shell-scripting-course-provider-n...
Shell Scripting-training-course-navi-mumbai-shell-scripting-course-provider-n...Shell Scripting-training-course-navi-mumbai-shell-scripting-course-provider-n...
Shell Scripting-training-course-navi-mumbai-shell-scripting-course-provider-n...
 
Oracle11g training-course-navi-mumbai-oracle11gl-course-provider-navi-mumbai
Oracle11g training-course-navi-mumbai-oracle11gl-course-provider-navi-mumbaiOracle11g training-course-navi-mumbai-oracle11gl-course-provider-navi-mumbai
Oracle11g training-course-navi-mumbai-oracle11gl-course-provider-navi-mumbai
 
Netbackup training-course-navi-mumbai-netbackup-course-provider-navi-mumbai
Netbackup training-course-navi-mumbai-netbackup-course-provider-navi-mumbaiNetbackup training-course-navi-mumbai-netbackup-course-provider-navi-mumbai
Netbackup training-course-navi-mumbai-netbackup-course-provider-navi-mumbai
 
Mainframe training-course-navi-mumbai-mainframe-course-provider-navi-mumbai
Mainframe training-course-navi-mumbai-mainframe-course-provider-navi-mumbaiMainframe training-course-navi-mumbai-mainframe-course-provider-navi-mumbai
Mainframe training-course-navi-mumbai-mainframe-course-provider-navi-mumbai
 
Jboss Application Server training-course-navi-mumbai-jboss-course-provider-na...
Jboss Application Server training-course-navi-mumbai-jboss-course-provider-na...Jboss Application Server training-course-navi-mumbai-jboss-course-provider-na...
Jboss Application Server training-course-navi-mumbai-jboss-course-provider-na...
 
Datastage training-course-navi-mumbai-datastage-course-provider-navi-mumbai
Datastage training-course-navi-mumbai-datastage-course-provider-navi-mumbaiDatastage training-course-navi-mumbai-datastage-course-provider-navi-mumbai
Datastage training-course-navi-mumbai-datastage-course-provider-navi-mumbai
 
Aix admin-course-provider-navi-mumbai | Aix admin course provider Navi Mumbai...
Aix admin-course-provider-navi-mumbai | Aix admin course provider Navi Mumbai...Aix admin-course-provider-navi-mumbai | Aix admin course provider Navi Mumbai...
Aix admin-course-provider-navi-mumbai | Aix admin course provider Navi Mumbai...
 
Aix admin course provider Navi Mumbai | AIX Admin Course Training Navi Mumbai...
Aix admin course provider Navi Mumbai | AIX Admin Course Training Navi Mumbai...Aix admin course provider Navi Mumbai | AIX Admin Course Training Navi Mumbai...
Aix admin course provider Navi Mumbai | AIX Admin Course Training Navi Mumbai...
 

Último

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

Java training-course-navi-mumbai-java-course-provider-navi-mumbai

  • 1. Vibrant Technologies & Computers java COURSE Make Career With Us!! B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173
  • 2. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in 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++
  • 3. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in Applets, Servlets and Applications • An applet is designed to be embedded in a Web page, and run by a browser • Applets run in a sandbox with numerous restrictions; for example, they can’t read files and then use the network • A servlet is designed to be run by a web server • An application is a conventional program
  • 4. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in Java Virtual Machine • The .class files generated by the compiler are not executable binaries – so Java combines compilation and interpretation • Instead, they contain “byte-codes” to be executed by the Java Virtual Machine – other languages have done this, e.g. UCSD Pascal • This approach provides platform independence, and greater security
  • 5. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in HelloWorld (standalone) public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } • Note that String is built in • println is a member function for the System.out class
  • 6. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in Java program layout • A typical Java file looks like: import java.awt.*; import java.util.*; public class SomethingOrOther { // object definitions go here . . . } This must be in a file named SomethingOrOther.java !
  • 7. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in So, what is a class? • A class consists of – a collection of fields, or variables, very much like the named fields of a struct – all the operations (called methods) that can be performed on those fields – can be instantiated • A class describes objects and operations defined on those objects
  • 8. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in Traditionally, source code had to be compiled for the target hardware and OS platform: The Java Virtual Machine. Source.cpp i386 binary SPARC binary PPC binary Windows Compiler Solaris Compiler Mac Compiler
  • 9. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in 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!
  • 10. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in Java source files (.java) are compiled to Java bytecode (.class) Bytecode is interpreted on the target platform within a Java Virtual Machine The Java Virtual Machine. Source.java i386 VM SPARC VM PPC VM Java Compiler Java Bytecode Source.class
  • 11. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in Packages • Like “namespace” in C++ • How to use: –C++: using namespace xxx –Java: import xxx, or import xxx.xx
  • 12. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in A Simple Java Applet: Drawing a String – appletviewer only understands <applet> tags • Ignores everything else • Minimal browser – Executing the applet • appletviewer WelcomeApplet.html • Perform in directory containing .class file 1 <html> 2 <applet code="WelcomeApplet.class" width=300 height=30> 3 </applet> 4 </html>
  • 13. B2/6/2 Vashi ,Navi Mumbai, Contact:09892900103/9892900173 javatraining.vibranttechnologies.co.in enquiry@vibrantgroup.co.in javatraining.vibranttechnologies.co.in Where to Get More Information Vibrant Group: www.vibrantgroup.co.in Vibrant Technologies & Computers www.vibranttechnologies.co.in/technologies.vibrantgroup.co. in Vibrant HR Team www.hr.vibrangroup.co.in