SlideShare a Scribd company logo
1 of 40
Welcome To   Interactive Session  withCETPA .
This Session Include :  YOU     : The “Technocrats ”   Market : Your destination  Us          :The medium
National Overview :  ,[object Object]
Total number of private Engineering colleges in India is more than 3000 in the year 2010.
Every year more than 8 lakh Engineers are produced ….!!
Only top 10% college of Engineering are able to provide job to students through Campus selection.,[object Object]
  Actual Scenario : Truth Infosys rejects 94% of applications it received: A dream company to many. It received a whooping 4,00,812 applications from prospective employees,  77,000 applicants underwent written test, 61,000 were interviewed and  26,200 job offers were made in the year 2009-10.  Which is only 6 percent of the total applications received. The question is Why ??
system, etc.   CETPA: The Missing Link !!  We are bridging this gap since 2002.
 CETPA: The Missing Link !!  Our trainees are now at :
  1st year   :  Computer programming concepts       2nd year  :  DS using “C”   3rd year   :  Web Technology + Lab.  +  Miniproject (2 credit )   7thSem   :  project (4 credit) + Training (2 credit)   8thSem  :  project ( 12 credit )  2nd year : ( IT )     Object Oriented Systems                                    Unit IV : Java programming . BCA      MCA     MSc (IT)       PGDCA              UPTU , BPUT, RGPV almost All…
JAVATECHNOLOGY .
Is JAVA obsolete  …….? Apple said that Java on Mac had been "deprecated" and it "may be removed from future versions of Mac OS but the future of Java development on Macs is secure. In November, Apple and Oracle announced that they would collaborate on a Mac-based incarnation of OpenJDK, an open source version of Java. SAP is integrating ABAP with JAVA.Then the field will be so much populated by java programmers that it will be going to be the end to ABAPers. A/c to Gartner Research, 82 percent of U.S. corporations use Java in some capacity.  Android from the Open Handset Alliance, whose 34 members include Google, HTC, Motorola. It is supported by over 34 major software, hardware and telecoms companies. Application programming is primarily done in Java. One of Java’s best features is the truth that even it is a very powerful and vigorous, this programming languages comes out free,being open source.
Lets begin…. Java Programming was developed by James Gosling in 1995, at  present subsidiary of Oracle Corporations, which was then called as sun Micro-systems.  Java is a third generation programming language. It has an in built application interface which has the ability to handle the graphics and user interfaces that creates the applets or applications. WORA: Because applications written in the Java programming language are compiled into machine-independent bytecodes, they run consistently on any Java platform. The very advantage of java is its “portability”, the programmer can write the program and compile in the same kind of environment as it is written and after that it can be run anywhere.
Basics …….     Generations of programming languages  1ST  - NO TRANSLATOR USED TO COMPLIE  2ND – SPECIFIC TO PARTICULAR PROCESSOR  3RD  - SYNONYM TO HIGH LEVEL ( C , C++ , C# , JAVA, COBOL) 4TH  - DOMAIN SPECIFIC PROGRAMMING ( SAS, ABAP, COLD FUSION ) 5TH -  BASED ON CONSTRAINTS  RATHER THAN ALGO ( PROLOG , Mercury )
About JAVA Technology Java technology is both a programming language and a platform.  The Java programming language is a high-level language that can be characterized by all of the following buzzwords:        SimpleArchitecture neutral   Object oriented  PortableDistributed High performance   Multithreaded  Robust Dynamic  Secure Unlike in c/c++ you need not manually allocate/de allocate dynamic memory, java itself does this and also it has garbage collection for the unused objects. Java program handles the run time errors too. It is not always possible to compile the complete program at the same time, so java uses just-in-time compiler to compile a set of bytecodes in real time for execution and the remaining codes will just be interpreted and thus makes the execution of Java program faster.
The Java platform has two components:  1.  The Java Virtual Machine 2.  The Java Application Programming Interface (API)                   The API is a large collection of ready-made software    components that provide many useful capabilities. It is grouped into  PACKAGES (libraries of related classes and interfaces)
The Java Programming Language J2SE J2EE J2ME JCSP re itstands for "Communicating Sequential Processes for Java, Robot Edition“work done at the University of Kent. Alex Panayotopoulos, a Masters research student at Napier University Edinburgh
The Java Versions : J2SE  J2SE versions  : -
The Java Versions :  J2SE versions  : -
  In Windows : Creating an  Application The Java SE Development Kit 6 (JDK 6)  A text editor /**         * The HelloWorldApp class implements an application that         * simply prints "Hello World!" to standard output.         */   class HelloWorldApp  {                              public static void main (String[ ] args ) {                                            System.out.println("Hello World !");  // Display the string.                                          }                        }  *Both the compiler (javac) and launcher tool (java) are case-sensitive
Creating Your First Application
Creation  of CLASS File…….. Now you are ready to compile. At the prompt, type the following command and press Enter.         javac HelloWorldApp.java  The compiler has generated a bytecode file,
Running  the program………... If no Microsoft JVM is installed on the systemMicrosoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.C:ocuments and Settingsark>jview'jview' is not recognized as an internal or external command,operable program or batch file.If  a copy of the Microsoft JVM installedMicrosoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.C:ocuments and Settingsark>jviewMicrosoft (R) Command-line Loader for Java Version 5.00.3810Copyright (C) Microsoft Corp 1996-2000. All rights reserved. RunDll32 advpack.dll,LaunchINFSection java.inf,UnInstall If you are running an older version of the JVM you may need to upgrade to version 3809 or 3810 (windows update) before the above command will work.
Running  the program………...  1.  Open a command prompt and type cd dir javac* /s        If it didn't find any files, install the JDK to compile your java  program. 2. Set the CLASSPATH        Right click "My Computer" and select "Properties". (or Win + Pause) Go to the "Advanced" Tab Click the "Environment Variables" button near the bottom of the dialog
In LINUX Continued   ……….. Install the Java SE Development Kit 6 (JDK 6)  You can  download the Solaris OS or Linux version.  A text editor In this example, we'll use Pico, an editor available for many UNIX-based platforms. You can easily adapt these instructions if you use a different text editor, such as vi or emacs.  In the Pico editor, you can save this by typing Ctrl-O and then, at the bottom where you see the prompt  File Name to write . For example,  you type /home/jdoe/java/HelloWorldApp.java and press Return. You can type Ctrl-X to exit Pico.
 Running Java in Linux/Unix ….
Discussion over the program Comments are ignored by the compiler        1.    /*  text */        2.   //  text        3.   /**   documentation  * /   The keyword class begins the class definition, and the code for each class appears between the opening and closing curly braces marked in bold above. The main method accepts a single argument: an array of elements of type String.  String is the predefined class present in java , it contains array of characters ( args [ ] array of    string arguments ) System.out.println ()   hereSystem  is a predefined class in java , out is an object present in the system class (console)    . Println is a method which points the output on system.out (console)
The Java Programming Language
The Java Programming Language Why the main is public ? Why the main is static ? How JVM works internally? How memory is managed ? What is JIT  and whats its use ? Bytecode ??  Why so !! Each Java application runs inside a runtime instance of some concrete implementation of the abstract specification of the Java virtual machine.
Applications on the NetBeans IDE: The Java SE Development Kit 6 (JDK 6)  The NetBeans IDE Create an IDE project : When you create an IDE project, you create an environment in which to build and run your applications. Using IDE projects eliminates configuration issues normally associated with developing on the command line. You can build or run your application by choosing a single menu item within the IDE.  Add code to the generated source file : A source file contains code, written in the Java programming language, that you and other programmers can understand. As part of creating an IDE project, a skeleton source file will be automatically generated. You will then modify the source file to add the "Hello World!" message.  Compile the source file into a .class file The IDE invokes the Java programming language compiler (javac), which takes your source file and translates its text into instructions that the Java virtual machine can understand. The instructions contained within this file are known as bytecodes.  Run the program : The IDE invokes the Java application launcher tool (java), which uses the Java virtual machine to run your application.
Applications on the NetBeans IDE:
Applications on the NetBeans IDE:
Applications on the NetBeans IDE:
The Java Programming Language To compile your source file, choose Build | Build Main Project from the IDE's main menu. From the IDE's menu bar, choose Run | Run Main Project.
J2SE
J2EE Contains …….. The platform was known as Java 2 Platform, Enterprise Edition or J2EE until the name was changed to Java EE in version 5. The current version is called Java EE 6. Java EE includes several API specifications, such as JDBC,RMI,  JMS, web services, XML, etc., and defines how to coordinate them. Java EE also features some specifications unique to Java EE for components. These include Enterprise JavaBeans, Connectors, servlets, JavaServer Pages and several web service technologies. This allows developers to create enterprise applications that are portable and scalable, and that integrate with legacy technologies.
J2EE  …….. A Web Application ?           Application developed in a browser controlled environment and accessed over a network (inter/intra net ).  1. code on server & on each client  2. in 1995 , Netscape Javascript      in 1996 , Macromedia Flash      in 1999 “java” introduced Servlet 2.2 at that time both XML and Javascript  exist.       in  2005 , Ajax was coined (Ex;- gmail more interactive)  3. Applications are broken into chunks called “TIERS” WEB ARCHITECTURES :- n-tier apporach (most common 3 – tier )  Cannonical  Web Architecture .
      J2ME Contains ……….. Java Platform, Micro Edition, or Java ME, is a Java platform designed for embedded systems (mobile devices are one kind of such systems) . Target devices range from industrial controls to mobile phones (especially feature phones) and set-top boxes. Java ME was formerly known as Java 2 Platform, Micro Edition (J2ME).
Development Environment in J2EE  J2EE Web Servers Sun One J2ee Server Weblogic Server JBoss Server Apache Tomcat Server ……….etc. Various IDEs Eclipse IDE.(IBM ) NetBeans IDE. BlueJ IDE  Kawa IDE. ………….etc.
J2EE Architecture . .

More Related Content

What's hot (20)

gopal hp
gopal hpgopal hp
gopal hp
 
Advance java summer training report
Advance java summer training report Advance java summer training report
Advance java summer training report
 
Industrial Training report on java
Industrial  Training report on javaIndustrial  Training report on java
Industrial Training report on java
 
Core java kvr - satya
Core  java kvr - satyaCore  java kvr - satya
Core java kvr - satya
 
Java for Recruiters
Java for RecruitersJava for Recruiters
Java for Recruiters
 
J introtojava1-pdf
J introtojava1-pdfJ introtojava1-pdf
J introtojava1-pdf
 
Bn1005 demo ppt core java
Bn1005 demo ppt core javaBn1005 demo ppt core java
Bn1005 demo ppt core java
 
Corejava ratan
Corejava ratanCorejava ratan
Corejava ratan
 
6 Weeks Summer Training on Java By SSDN Technologies
6 Weeks Summer Training on Java By SSDN Technologies6 Weeks Summer Training on Java By SSDN Technologies
6 Weeks Summer Training on Java By SSDN Technologies
 
Java seminar
Java seminarJava seminar
Java seminar
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)
 
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1
 
Best Industrial training report
Best Industrial training reportBest Industrial training report
Best Industrial training report
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
 
An introduction to java programming language forbeginners(java programming tu...
An introduction to java programming language forbeginners(java programming tu...An introduction to java programming language forbeginners(java programming tu...
An introduction to java programming language forbeginners(java programming tu...
 
Report in Java programming and SQL
Report in Java programming and SQLReport in Java programming and SQL
Report in Java programming and SQL
 
perl-java
perl-javaperl-java
perl-java
 
Core java slides
Core java slidesCore java slides
Core java slides
 
130700548484460000
130700548484460000130700548484460000
130700548484460000
 

Similar to Java Semimar Slide (Cetpa)

J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01Jay Palit
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkMohit Belwal
 
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
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java SlidesVinit Vyas
 
JAVA introduction and basic understanding.pptx
JAVA  introduction and basic understanding.pptxJAVA  introduction and basic understanding.pptx
JAVA introduction and basic understanding.pptxprstsomnath22
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_javaHarry Potter
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingJames Wong
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_javaHoang Nguyen
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_javaTony Nguyen
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingYoung Alista
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingFraboni Ec
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingLuis Goldster
 
(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basicsRaffaella D'angelo
 
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
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language Hitesh-Java
 

Similar to Java Semimar Slide (Cetpa) (20)

Java presentation
Java presentationJava presentation
Java presentation
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
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...
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
Javalecture 1
Javalecture 1Javalecture 1
Javalecture 1
 
JAVA introduction and basic understanding.pptx
JAVA  introduction and basic understanding.pptxJAVA  introduction and basic understanding.pptx
JAVA introduction and basic understanding.pptx
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basics
 
Java Intro
Java IntroJava Intro
Java Intro
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
 
Notes of java first unit
Notes of java first unitNotes of java first unit
Notes of java first unit
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
 

More from Pratima Parida (15)

Summer training 2012 new
Summer training 2012 newSummer training 2012 new
Summer training 2012 new
 
Summer training 2012
Summer training 2012Summer training 2012
Summer training 2012
 
Php
PhpPhp
Php
 
Oracle
OracleOracle
Oracle
 
Mechanical Designing 6 Months
Mechanical Designing 6 MonthsMechanical Designing 6 Months
Mechanical Designing 6 Months
 
Java
JavaJava
Java
 
Java
JavaJava
Java
 
Hardware Networking
Hardware NetworkingHardware Networking
Hardware Networking
 
Hardware Networking
Hardware NetworkingHardware Networking
Hardware Networking
 
Advanced Networking
Advanced NetworkingAdvanced Networking
Advanced Networking
 
6 Months Net
6 Months Net6 Months Net
6 Months Net
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Cartoon Presentation
Cartoon PresentationCartoon Presentation
Cartoon Presentation
 
Cetpa Clip Art
Cetpa Clip ArtCetpa Clip Art
Cetpa Clip Art
 
Cartoon Presentation
Cartoon PresentationCartoon Presentation
Cartoon Presentation
 

Java Semimar Slide (Cetpa)

  • 1. Welcome To Interactive Session withCETPA .
  • 2. This Session Include : YOU : The “Technocrats ” Market : Your destination Us :The medium
  • 3.
  • 4. Total number of private Engineering colleges in India is more than 3000 in the year 2010.
  • 5. Every year more than 8 lakh Engineers are produced ….!!
  • 6.
  • 7. Actual Scenario : Truth Infosys rejects 94% of applications it received: A dream company to many. It received a whooping 4,00,812 applications from prospective employees, 77,000 applicants underwent written test, 61,000 were interviewed and 26,200 job offers were made in the year 2009-10. Which is only 6 percent of the total applications received. The question is Why ??
  • 8. system, etc. CETPA: The Missing Link !! We are bridging this gap since 2002.
  • 9. CETPA: The Missing Link !! Our trainees are now at :
  • 10. 1st year : Computer programming concepts 2nd year : DS using “C” 3rd year : Web Technology + Lab. + Miniproject (2 credit ) 7thSem : project (4 credit) + Training (2 credit) 8thSem : project ( 12 credit ) 2nd year : ( IT )  Object Oriented Systems Unit IV : Java programming . BCA MCA MSc (IT) PGDCA UPTU , BPUT, RGPV almost All…
  • 12. Is JAVA obsolete …….? Apple said that Java on Mac had been "deprecated" and it "may be removed from future versions of Mac OS but the future of Java development on Macs is secure. In November, Apple and Oracle announced that they would collaborate on a Mac-based incarnation of OpenJDK, an open source version of Java. SAP is integrating ABAP with JAVA.Then the field will be so much populated by java programmers that it will be going to be the end to ABAPers. A/c to Gartner Research, 82 percent of U.S. corporations use Java in some capacity. Android from the Open Handset Alliance, whose 34 members include Google, HTC, Motorola. It is supported by over 34 major software, hardware and telecoms companies. Application programming is primarily done in Java. One of Java’s best features is the truth that even it is a very powerful and vigorous, this programming languages comes out free,being open source.
  • 13. Lets begin…. Java Programming was developed by James Gosling in 1995, at present subsidiary of Oracle Corporations, which was then called as sun Micro-systems. Java is a third generation programming language. It has an in built application interface which has the ability to handle the graphics and user interfaces that creates the applets or applications. WORA: Because applications written in the Java programming language are compiled into machine-independent bytecodes, they run consistently on any Java platform. The very advantage of java is its “portability”, the programmer can write the program and compile in the same kind of environment as it is written and after that it can be run anywhere.
  • 14. Basics ……. Generations of programming languages 1ST - NO TRANSLATOR USED TO COMPLIE 2ND – SPECIFIC TO PARTICULAR PROCESSOR 3RD - SYNONYM TO HIGH LEVEL ( C , C++ , C# , JAVA, COBOL) 4TH - DOMAIN SPECIFIC PROGRAMMING ( SAS, ABAP, COLD FUSION ) 5TH - BASED ON CONSTRAINTS RATHER THAN ALGO ( PROLOG , Mercury )
  • 15. About JAVA Technology Java technology is both a programming language and a platform. The Java programming language is a high-level language that can be characterized by all of the following buzzwords: SimpleArchitecture neutral Object oriented PortableDistributed High performance Multithreaded Robust Dynamic Secure Unlike in c/c++ you need not manually allocate/de allocate dynamic memory, java itself does this and also it has garbage collection for the unused objects. Java program handles the run time errors too. It is not always possible to compile the complete program at the same time, so java uses just-in-time compiler to compile a set of bytecodes in real time for execution and the remaining codes will just be interpreted and thus makes the execution of Java program faster.
  • 16. The Java platform has two components: 1. The Java Virtual Machine 2. The Java Application Programming Interface (API) The API is a large collection of ready-made software components that provide many useful capabilities. It is grouped into PACKAGES (libraries of related classes and interfaces)
  • 17. The Java Programming Language J2SE J2EE J2ME JCSP re itstands for "Communicating Sequential Processes for Java, Robot Edition“work done at the University of Kent. Alex Panayotopoulos, a Masters research student at Napier University Edinburgh
  • 18. The Java Versions : J2SE J2SE versions : -
  • 19. The Java Versions : J2SE versions : -
  • 20. In Windows : Creating an Application The Java SE Development Kit 6 (JDK 6) A text editor /**  * The HelloWorldApp class implements an application that  * simply prints "Hello World!" to standard output.  */ class HelloWorldApp {      public static void main (String[ ] args ) {       System.out.println("Hello World !"); // Display the string.      } } *Both the compiler (javac) and launcher tool (java) are case-sensitive
  • 21. Creating Your First Application
  • 22. Creation of CLASS File…….. Now you are ready to compile. At the prompt, type the following command and press Enter. javac HelloWorldApp.java The compiler has generated a bytecode file,
  • 23. Running the program………... If no Microsoft JVM is installed on the systemMicrosoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.C:ocuments and Settingsark>jview'jview' is not recognized as an internal or external command,operable program or batch file.If a copy of the Microsoft JVM installedMicrosoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.C:ocuments and Settingsark>jviewMicrosoft (R) Command-line Loader for Java Version 5.00.3810Copyright (C) Microsoft Corp 1996-2000. All rights reserved. RunDll32 advpack.dll,LaunchINFSection java.inf,UnInstall If you are running an older version of the JVM you may need to upgrade to version 3809 or 3810 (windows update) before the above command will work.
  • 24. Running the program………... 1. Open a command prompt and type cd dir javac* /s If it didn't find any files, install the JDK to compile your java program. 2. Set the CLASSPATH Right click "My Computer" and select "Properties". (or Win + Pause) Go to the "Advanced" Tab Click the "Environment Variables" button near the bottom of the dialog
  • 25. In LINUX Continued ……….. Install the Java SE Development Kit 6 (JDK 6) You can download the Solaris OS or Linux version. A text editor In this example, we'll use Pico, an editor available for many UNIX-based platforms. You can easily adapt these instructions if you use a different text editor, such as vi or emacs. In the Pico editor, you can save this by typing Ctrl-O and then, at the bottom where you see the prompt File Name to write . For example, you type /home/jdoe/java/HelloWorldApp.java and press Return. You can type Ctrl-X to exit Pico.
  • 26. Running Java in Linux/Unix ….
  • 27. Discussion over the program Comments are ignored by the compiler 1. /* text */ 2. // text 3. /** documentation * / The keyword class begins the class definition, and the code for each class appears between the opening and closing curly braces marked in bold above. The main method accepts a single argument: an array of elements of type String. String is the predefined class present in java , it contains array of characters ( args [ ] array of string arguments ) System.out.println () hereSystem is a predefined class in java , out is an object present in the system class (console) . Println is a method which points the output on system.out (console)
  • 29. The Java Programming Language Why the main is public ? Why the main is static ? How JVM works internally? How memory is managed ? What is JIT and whats its use ? Bytecode ?? Why so !! Each Java application runs inside a runtime instance of some concrete implementation of the abstract specification of the Java virtual machine.
  • 30. Applications on the NetBeans IDE: The Java SE Development Kit 6 (JDK 6) The NetBeans IDE Create an IDE project : When you create an IDE project, you create an environment in which to build and run your applications. Using IDE projects eliminates configuration issues normally associated with developing on the command line. You can build or run your application by choosing a single menu item within the IDE. Add code to the generated source file : A source file contains code, written in the Java programming language, that you and other programmers can understand. As part of creating an IDE project, a skeleton source file will be automatically generated. You will then modify the source file to add the "Hello World!" message. Compile the source file into a .class file The IDE invokes the Java programming language compiler (javac), which takes your source file and translates its text into instructions that the Java virtual machine can understand. The instructions contained within this file are known as bytecodes. Run the program : The IDE invokes the Java application launcher tool (java), which uses the Java virtual machine to run your application.
  • 31. Applications on the NetBeans IDE:
  • 32. Applications on the NetBeans IDE:
  • 33. Applications on the NetBeans IDE:
  • 34. The Java Programming Language To compile your source file, choose Build | Build Main Project from the IDE's main menu. From the IDE's menu bar, choose Run | Run Main Project.
  • 35. J2SE
  • 36. J2EE Contains …….. The platform was known as Java 2 Platform, Enterprise Edition or J2EE until the name was changed to Java EE in version 5. The current version is called Java EE 6. Java EE includes several API specifications, such as JDBC,RMI, JMS, web services, XML, etc., and defines how to coordinate them. Java EE also features some specifications unique to Java EE for components. These include Enterprise JavaBeans, Connectors, servlets, JavaServer Pages and several web service technologies. This allows developers to create enterprise applications that are portable and scalable, and that integrate with legacy technologies.
  • 37. J2EE …….. A Web Application ? Application developed in a browser controlled environment and accessed over a network (inter/intra net ). 1. code on server & on each client 2. in 1995 , Netscape Javascript in 1996 , Macromedia Flash in 1999 “java” introduced Servlet 2.2 at that time both XML and Javascript exist. in 2005 , Ajax was coined (Ex;- gmail more interactive) 3. Applications are broken into chunks called “TIERS” WEB ARCHITECTURES :- n-tier apporach (most common 3 – tier ) Cannonical Web Architecture .
  • 38. J2ME Contains ……….. Java Platform, Micro Edition, or Java ME, is a Java platform designed for embedded systems (mobile devices are one kind of such systems) . Target devices range from industrial controls to mobile phones (especially feature phones) and set-top boxes. Java ME was formerly known as Java 2 Platform, Micro Edition (J2ME).
  • 39. Development Environment in J2EE J2EE Web Servers Sun One J2ee Server Weblogic Server JBoss Server Apache Tomcat Server ……….etc. Various IDEs Eclipse IDE.(IBM ) NetBeans IDE. BlueJ IDE Kawa IDE. ………….etc.
  • 41. J2EE Components Application clients and applets are components that run on the client. Java Servlet and JavaServer Pages (JSP) technology components are web components that run on the server. Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server. EIS (Executive Information System) = Business Intelligence
  • 42. CETPA: The Missing Link !! 8800340777 query@cetpainfotech.com