O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

Java Semimar Slide (Cetpa)

Próximos SlideShares
Java Programming Basics
Java Programming Basics
Carregando em…3

Confira estes a seguir

1 de 40 Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (20)

Semelhante a Java Semimar Slide (Cetpa) (20)


Java Semimar Slide (Cetpa)

  1. 1. Welcome<br />To <br /> Interactive Session <br />withCETPA<br />.<br />
  2. 2. This Session Include : <br />YOU : The “Technocrats ” <br />Market : Your destination <br />Us :The medium <br />
  3. 3. National Overview : <br /><ul><li> Shanghai Jiao Tong University's Academic Ranking of World Universities, only one IIT (IIT Kgp ) was listed among the top 500 universities worldwide.
  4. 4. Total number of private Engineering colleges in India is more than 3000 in the year 2010.
  5. 5. Every year more than 8 lakh Engineers are produced ….!!
  6. 6. Only top 10% college of Engineering are able to provide job to students through Campus selection.</li></li></ul><li>Market scenario :<br />The 2008 slowdown is over now<br />TCS Plans to Recruit 50,000 Employees in 2011 –N Chandrasekaran , CEO<br />INFOSYS plans to recruit 36,000 in just one quarter .in 2nd quarter 14,000 out of which 9000 are FRESHERS –T V Mohandas Pai ,Director HR, <br />Java developers in such demand that banks could use them as currency to repay the nation - Harsh Manglik , Chairman, NASSCOM<br />
  7. 7. Actual Scenario : Truth<br />Infosys rejects 94% of applications it received:<br />A dream company to many. It received a whooping 4,00,812 applications from prospective employees, 77,000 applicants underwent written test,<br />61,000 were interviewed and<br /> 26,200 job offers were made in the year 2009-10. <br />Which is only 6 percent of the total applications received.<br />The question is Why ??<br />
  8. 8. system, etc. <br /> CETPA: The Missing Link !! <br />We are bridging this gap since 2002.<br />
  9. 9. CETPA: The Missing Link !! <br />Our trainees are now at :<br />
  10. 10. 1st year : Computer programming concepts <br /> 2nd year : DS using “C”<br /> 3rd year : Web Technology + Lab. + Miniproject (2 credit )<br /> 7thSem : project (4 credit) + Training (2 credit)<br /> 8thSem : project ( 12 credit )<br /> 2nd year : ( IT )  Object Oriented Systems <br /> Unit IV : Java programming .<br />BCA MCA MSc (IT) PGDCA<br /> UPTU , BPUT, RGPV almost All…<br />
  11. 11. JAVATECHNOLOGY<br />.<br />
  12. 12. Is JAVA obsolete …….?<br />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.<br />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.<br />A/c to Gartner Research, 82 percent of U.S. corporations use Java in some capacity. <br />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.<br />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.<br />
  13. 13. Lets begin….<br />Java Programming was developed by James Gosling in 1995, at present subsidiary of Oracle Corporations, which was then called as sun Micro-systems. <br />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.<br />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.<br />
  14. 14. Basics …….<br /> Generations of programming languages <br />1ST - NO TRANSLATOR USED TO COMPLIE <br />2ND – SPECIFIC TO PARTICULAR PROCESSOR <br />3RD - SYNONYM TO HIGH LEVEL ( C , C++ , C# , JAVA, COBOL)<br />4TH - DOMAIN SPECIFIC PROGRAMMING ( SAS, ABAP, COLD FUSION )<br />5TH - BASED ON CONSTRAINTS RATHER THAN ALGO ( PROLOG , Mercury )<br />
  15. 15. About JAVA Technology<br />Java technology is both a programming language and a platform. <br />The Java programming language is a high-level language that can be characterized by all of the following buzzwords: <br /> SimpleArchitecture neutral Object oriented PortableDistributed High performance Multithreaded Robust Dynamic Secure<br />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.<br />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.<br />
  16. 16. The Java platform has two components: <br />1. The Java Virtual Machine<br />2. The Java Application Programming Interface (API)<br /> 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)<br />
  17. 17. The Java Programming Language<br />J2SE<br />J2EE<br />J2ME<br />JCSP re<br />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<br />
  18. 18. The Java Versions : J2SE <br />J2SE versions : -<br />
  19. 19. The Java Versions : <br />J2SE versions : -<br />
  20. 20. In Windows : Creating an Application<br />The Java SE Development Kit 6 (JDK 6) <br />A text editor<br />/** <br />  * The HelloWorldApp class implements an application that <br />  * simply prints "Hello World!" to standard output. <br />  */<br /> class HelloWorldApp<br /> {   <br />   public static void main (String[ ] args )<br />{ <br />       System.out.println("Hello World !"); <br />// Display the string.   <br />   } <br /> } <br />*Both the compiler (javac) and launcher tool (java) are case-sensitive<br />
  21. 21. Creating Your First Application<br />
  22. 22. Creation of CLASS File……..<br />Now you are ready to compile. At the prompt, type the following command and press Enter. <br /> javac HelloWorldApp.java <br />The compiler has generated a bytecode file,<br />
  23. 23. Running the program………...<br />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.<br />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.<br />
  24. 24. Running the program………...<br /> 1. Open a command prompt and type<br />cd dir javac* /s <br /> If it didn't find any files, install the JDK to compile your java program.<br />2. Set the CLASSPATH <br /> 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<br />
  25. 25. In LINUX Continued ………..<br />Install the Java SE Development Kit 6 (JDK 6) <br />You can download the Solaris OS or Linux version.<br /> A text editor<br />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. <br />In the Pico editor, you can save this by typing Ctrl-O and then, at the bottom where you see the prompt <br />File Name to write<br />. For example, you type /home/jdoe/java/HelloWorldApp.java and press Return.<br />You can type Ctrl-X to exit Pico.<br />
  26. 26. Running Java in Linux/Unix ….<br />
  27. 27. Discussion over the program<br />Comments are ignored by the compiler<br /> 1. /* text */<br /> 2. // text<br /> 3. /** documentation * / <br />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.<br />The main method accepts a single argument: an array of elements of type String. <br />String is the predefined class present in java , it contains array of characters ( args [ ] array of string arguments )<br />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)<br />
  28. 28. The Java Programming Language<br />
  29. 29. The Java Programming Language<br />Why the main is public ?<br />Why the main is static ?<br />How JVM works internally?<br />How memory is managed ?<br />What is JIT and whats its use ?<br />Bytecode ?? Why so !!<br />Each Java application runs inside a runtime instance of some concrete implementation of the abstract specification of the Java virtual machine.<br />
  30. 30. Applications on the NetBeans IDE:<br />The Java SE Development Kit 6 (JDK 6) <br />The NetBeans IDE<br />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. <br />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. <br />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. <br />Run the program : The IDE invokes the Java application launcher tool (java), which uses the Java virtual machine to run your application. <br />
  31. 31. Applications on the NetBeans IDE: <br />
  32. 32. Applications on the NetBeans IDE: <br />
  33. 33. Applications on the NetBeans IDE: <br />
  34. 34. The Java Programming Language<br />To compile your source file, choose Build | Build Main Project from the IDE's main menu.<br />From the IDE's menu bar, choose Run | Run Main Project.<br />
  35. 35. J2SE <br />
  36. 36. J2EE Contains ……..<br />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.<br />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.<br />
  37. 37. J2EE ……..<br />A Web Application ?<br /> Application developed in a browser controlled environment and accessed over a network (inter/intra net ).<br /> 1. code on server & on each client<br /> 2. in 1995 , Netscape Javascript<br /> in 1996 , Macromedia Flash<br /> in 1999 “java” introduced Servlet 2.2 at that time both XML and Javascript exist. <br /> in 2005 , Ajax was coined (Ex;- gmail more interactive)<br /> 3. Applications are broken into chunks called “TIERS”<br />WEB ARCHITECTURES :-<br />n-tier apporach (most common 3 – tier )<br /> Cannonical Web Architecture . <br />
  38. 38. J2ME Contains ………..<br />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).<br />
  39. 39. Development Environment in J2EE <br />J2EE Web Servers<br />Sun One J2ee Server<br />Weblogic Server<br />JBoss Server<br />Apache Tomcat Server ……….etc.<br />Various IDEs<br />Eclipse IDE.(IBM )<br />NetBeans IDE.<br />BlueJ IDE <br />Kawa IDE. ………….etc.<br />
  40. 40. J2EE Architecture<br />.<br />.<br />
  41. 41. J2EE Components <br />Application clients and applets are components that run on the client.<br />Java Servlet and JavaServer Pages (JSP) technology components are web components that run on the server. <br />Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server.<br />EIS (Executive Information System) = Business Intelligence<br />
  42. 42. CETPA: The Missing Link !! <br />8800340777<br />query@cetpainfotech.com<br />