1 / 50

What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka

This Edureka "What Is Java" tutorial will help you in understanding the various fundamentals of Java in detail with examples. Below are the topics covered in this tutorial: <br><br>1) What is Java? <br>2) Where is Java used? <br>3) Features of Java <br>4) Java Environment <br>5) How does Java work? <br>6) Data Types in Java <br>7) Operators in Java <br>8) Functions in Java <br>9) Object Oriented Concepts in Java

EdurekaIN
Download Presentation

What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ` EDUREKA JAVA CERTIFICATION TRAINING What is Hadoop? https://www.edureka.co/java-j2ee-soa-training

  2. Agenda For Today ➢ What is Java? ➢ Where is Java used? ➢ Features of Java ➢ Java Environment ` ➢ How does Java work? ➢ Data Types in Java ➢ Operators in Java ➢ Functions in Java ➢ Object Oriented Concepts in Java EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  3. What is Java? ` EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  4. What is Java? ➢ Java was created by a team lead by James Gosling in 1995 for Sun Microsystems. ➢ Java is a platform independent programming language that follows the logic of “Write once, Run anywhere”. ` Programming Language OperationsPlatform EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  5. What is Java? Java 6 Mustang Java 1.4 Merlin Java 1.2 Playground Java 1.0 Oak Java 8 September 2004 May 2000 July 2011 February 1997 ` January 1996 February 2002 December 2006 December 1998 March 2014 Java 7 Dolphin Java1.3 Kestrel Java 1.1 Java 5 Tiger EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  6. Where is Java used?

  7. Where is Java used? Android is the markets leading mobile operating system that extensively uses Java. ` EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  8. Where is Java used? Below are some of the domains that make use of Java: Financial Services Android Retail ` Banking Big Data Stock market Information Technology Scientific Research EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  9. Features of Java

  10. Features of Java {OOPS} {OOPS} Secure Object-oriented Portable Simple ` Dynamic Distributed Robust High Performance EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  11. Features of Java {OOPS} {OOPS} Portable Simple Secure Object-oriented Distributed ` ➢ Java was designed to be easy for professional programmer to learn and use effectively. ➢ No need to worry about memory management because there is Automatic Garbage Collection in java. EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  12. Features of Java {OOPS} {OOPS} Distributed Object-oriented Dynamic Secure Portable ` ➢ Applications written using Java are portable in the sense that they can be executed on any kind of computer containing any CPU or any operating system. EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  13. Features of Java {OOPS} {OOPS} Dynamic Robust Distributed Secure Object-oriented ` ➢ Java is true object oriented language. ➢ Everything is considered to be an “object” and all operations are performed using these objects. EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  14. Features of Java Dynamic Robust High Performance Distributed Secure ` ➢ Java Programs run inside virtual machine sandbox to prevents any activities from untrusted sources. ➢ No use of explicit pointer. EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  15. Features of Java Distributed High Performance Dynamic Robust ` ➢ Java has a feature called Remote Method Invocation (RMI) using which a program can invoke method of another program across a network and get the output. EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  16. Features of Java Distributed High Performance Dynamic Robust ` ➢ Java programs carry with them substantial amounts of run-time type information that is used to verify and resolve accesses to objects at run time. EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  17. Features of Java Distributed High Performance Dynamic Robust ` ➢ Java checks the code during the compilation time and run time also. ➢ Java completely takes care of memory allocation and releasing, which makes the Java program more robust. EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  18. Features of Java Distributed High Performance Dynamic Robust ` ➢ Java achieves high performance through the use of bytecode which can easily translated into native machine code. EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  19. Java Environment

  20. Java Development Kit JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed. JDK JRE JRE (Java Runtime Environment) is a runtime environment which implements JVM and provides all class libraries and other files that JVM uses at runtime. ` JVM JDK(Java Development Kit) is the tool necessary to compile, document and package Java programs. The JDK completely includes JRE. EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  21. How does Java work?

  22. How does Java work? Java C Compiler Java Source (.java) ` JVM Java Java is easy Interpreter JIT Compiler EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  23. How does Java work? Compile-time Environment Run-time Environment Class Loader Bytecode Verifier Java Class Libraries Java Source (.java) Just in Time Compiler Java Interpreter Java Compiler ` Java Bytecodes move locally or through network Java Virtual Machine Runtime System Operating System Java Bytecode (.class) Hardware EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  24. Installation ` EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  25. Java Installation Go to http://www.oracle.com/technetw ork/java/javase/downloads 1 ` Download Java Platform(JDK) version 8 update 121 and install on your Windows system 2 EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  26. Java Installation To set the permanent path of JDK in your system: 1 1. Begin by going to My Computer Properties. 2 2. Click on Advanced system setting. ` 3. Click on Environment Variables option 4 4. Select Path variable to edit 5. Enter the path to bin folder inside JDK installed on your system.( Default path is C:\Program Files\Java\jdk1.8.0_121\bin ) 5 3 EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  27. Eclipse IDE Installation Go to www.eclipse.org 1 Download Eclipse Neon installer and install on your Windows system 2 ` EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  28. Data Types in Java

  29. Data Types in Java Primitive Data Type Boolean Character Float Integer ` char bool double float byte int long short EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  30. Data Types in Java Data Type Value Bytes Required byte -128 to 127 1 short -32768 to 32767 2 int -2147483648 to 2147483647 4 -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 ` long 8 float ±3.40282347E+38F 4 double ±1.79769313486231570E+308 8 char 0 to 65,536 2 boolean true or false 1(bit) EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  31. Data Operations in Java

  32. Data Operators in Java Data Operators ` Relational operators Arithmetic Operators Unary Operators Logical Operators EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  33. Data Operations in Java Arithmetic operators: Operator + - / * Syntax A + B A – B A / B A * B Description Addition Subtraction Division Multiplication Modulus – Returns reminder after division ` % A % B EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  34. Data Operations in Java Unary operators: Operator ++ Syntax i++ Description Use the current value of i and then increment the value by 1. Increment the value of i by 1 and then use the new value. Decrement the value of i by 1 and then use the new value. Use the current value of i and then decrement the value by 1 ` ++i -- --i i-- EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  35. Data Operations in Java Relational operators: Operator Syntax Decryption Result is true if X if greater than Y; otherwise is false Result is true if X if greater than or equal to Y; otherwise is false Result is true if X if lesser than Y; otherwise is false Result is true if X if lesser than or equal Y; otherwise is false Result is true if X and Y are equal; otherwise is false Result is true if X and Y are not equal; otherwise is false > X>Y >= X>=Y ` < X<Y <= X<=Y == X==Y != X!=Y EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  36. Data Operations in Java Logical operators: Operator && Syntax False && False True && False False && True True && True False || False True || False False || True True || True Decryption False False False True False True True True ` || EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  37. Functions In Java

  38. Functions in Java A function is a block of organized, reusable sets of instructions that is used to perform some related actions. ` Built-in Function Why do we use functions? ➢Re – usability of code minimizes redundancy ➢Procedural decomposition makes things organized Function User Defined Function EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  39. Functions in Java function parameters User Defined Function defining function Syntax: function return value modifier returnType methodName(parameters) { Statements… } ` Example: public static int add(int a, int b) { function call int result; result = a + b; return result; } output EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  40. Object Oriented Programming

  41. Objects ➢ Object is simply a collection of data (State) and methods (Behaviour) that act on those data. State: Color Size Shape • • • ` Behavior: Power On(); Call (); Message (); • • • EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  42. Class ➢ Class is a blueprint from with the object are created. class Phone{ String brand; int batteryPower; String processor; . . public Phone(String phoneBrand, int power, String phoneProcessor) { brand = phoneBrand; Batterpower = power; processor = phoneProcessor; } //Other class methods ` } EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  43. Inheritance ➢Inheritance is a mechanism through which one object acquires all the properties and behaviors of parent object. Mobile Super Class ` Child Class Apple Samsung Google EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  44. Encapsulation ➢Encapsulation is the mechanism that binds together code and the data it manipulates together. Unauthorized User ` Authorized User EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  45. Polymorphism ➢Polymorphism is the ability of a variable, function or object to take on multiple forms. Mobile ` Camera Remote MP3 Player EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  46. Abstraction ➢Abstraction is the methodology of hiding the implementation details from the user and only providing the functionality to the users. ` EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  47. Summary

  48. Session In A Minute Why Learn Java Java Introduction Features of Java ` Java Environment How does Java work Data Types in Java EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

  49. Session In A Minute Functions in Java Data Operators in Java ` EDUREKA JAVA CERTIFICATION TRAINING https://www.edureka.co/java-j2ee-soa-training

More Related