` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING What is Hadoop?
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Agenda For Today ➢ Introduction Java ➢ Timeline of Java ➢ Features of Java ➢ Java Environment ➢ How does Java work? ➢ Data Types in Java ➢ Operators in Java ➢ Functions in Java ➢ Object Oriented Concepts in Java
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Introduction Java
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING What is Java? ➢ Java was created by a team lead by James Gosling in 1995 for Sun Microsystems. ➢ Java is concurrent, class-based and object-oriented programming language ➢ Java is a platform independent programming language that follows the logic of “Write once, Run anywhere”.
Java Timeline
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Java Timeline January 1996 February 1997 December 1998 May 2000 February 2002 September 2004 December 2006 July 2011 March 2014 Java 1.0 Oak Java 1.1 Java 1.2 Playground Java1.3 Kestrel Java 1.4 Merlin Java 5 Tiger Java 6 Mustang Java 7 Dolphin Java 8
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Java Editions ➢ There are mainly 3 editions of Java that are available today: Java Java Standard Edition Java Enterprise Edition Java Micro Edition
Features of Java
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Features of Java Distributed RobustDynamic High Performance Simple Object-oriented {OOPS} Portable Secure
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Features of Java Simple ➢ Java was designed to be easy for professional programmer to learn and use effectively. Feature of Java Simple Portable Object-oriented Dynamic Distributed Robust High Performance Secure
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Features of Java 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. Feature of Java Simple Portable Object-oriented Dynamic Distributed Robust High Performance Secure
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Features of Java Object-oriented {OOPS} ➢ Java is true object oriented language. ➢ Everything is considered to be an “object” and all operations are performed using these objects. Feature of Java Simple Portable Object-oriented Dynamic Distributed Robust High Performance Secure
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Features of Java Secure ➢ Java Programs run inside virtual machine sandbox to prevent any activity from untrusted sources. ➢ No use of explicit pointer. Feature of Java Simple Portable Object-oriented Dynamic Distributed Robust High Performance Secure
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Features of Java Distributed ➢ 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. Feature of Java Simple Portable Object-oriented Dynamic Distributed Robust High Performance Secure
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Features of Java Dynamic ➢ 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. Feature of Java Simple Portable Object-oriented Dynamic Distributed Robust High Performance Secure
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Features of Java 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. Feature of Java Simple Portable Object-oriented Dynamic Distributed Robust High Performance Secure
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Features of Java High Performance ➢ Java achieves high performance through the use of bytecode which can be easily translated into native machine code. Feature of Java Simple Portable Object-oriented Dynamic Distributed Robust High Performance Secure
Java Environment
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Java Environment JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed. JRE (Java Runtime Environment) is a runtime environment which implements JVM and provides all class libraries and other files that JVM uses at runtime. JDK(Java Development Kit) is the tool necessary to compile, document and package Java programs. The JDK completely includes JRE. JDK JRE JVM Java Class Libraries Development tools
How does Java work?
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING How does Java work? Java Source (.java) Java is easy Java C Compiler JIT Compiler Java Interpreter JVM Java Bytecode Object Code
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Installation
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING 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
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Java Installation To set the permanent path of JDK in your system: 1. Begin by going to My Computer Properties. 2. Click on Advanced system setting. 3. Click on Environment Variables option 4. Select Path variable to edit 5. Enter the path to bin folder inside JDK installed on your system.( Default path is C:Program FilesJavajdk1.8.0_121bin ) 1 2 3 4 5
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Go to www.eclipse.org Download Eclipse Neon installer and install on your Windows system 1 2 Eclipse IDE Installation
Structure of Java Program
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Structure of Java Program Package Details Class Data Members Members Functions Main Functions
Data Types in Java
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Data Types in Java Integer BooleanCharacterFloat Primitive Data Type bytelongshort int floatdouble char bool
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Data Types in Java Data Type Value Bytes Required byte -128 to 127 1 short -32768 to 32767 2 int -2147483648 to 2147483647 4 long -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 8 float ±3.40282347E+38F 4 double ±1.79769313486231570E+308 8 char 0 to 65,536 2 boolean true or false 1(bit)
Data Operations in Java
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Data Operators in Java Arithmetic Operators Unary operators Relational operators Logical Operators 1 2 3 4
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Add two operands or unary plus + Subtract two operands or unary subtract - Multiply two operands * Divide left operand with the right and result is in float / >> 2 + 3 5 >> +2 >> 3 – 1 2 >> -2 >> 2 * 3 6 >> 6 / 3 2.0 Arithmetic Operators Unary operators Relational operators: Logical Operators 1 2 3 4 Arithmetic Operators Remainder of the division of left operand by the right % >> 5 % 3 2
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Unary operators Arithmetic Operators Unary operators Relational operators: Logical Operators 1 2 3 4 ++ X++ - Post Increment ++X – Pre Increment -- >> ++x >> print(x) 6 >> x-- >> print(x) 4 >> x = 5 X-- - Post Decrement --X – Pre Increment
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Relational operators Arithmetic Operators Unary operators Relational operators: Logical Operators 1 2 3 4 > True if left operand is greater than the right < True if left operand is less than the right == True if left operand is equal to right != True if left operand is not equal to the right >> 2 > 3 False >> 2 < 3 True >>2 == 2 True >> x >>= 2 >>print(x) 1
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING and Returns True if both x and y are True, False otherwise or Returns True if at least x or y are True, False otherwise not Returns True if x is False, True otherwise >> True && False False >> True || False True >> ! 1 False Arithmetic Operators Unary operators Relational operators: Logical Operators 1 2 3 4 Logical operators
Functions In Java
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Functions in Java A function is a block of organized, reusable sets of instructions that is used to perform some related actions. Why do we use functions? ➢Re – usability of code minimizes redundancy ➢Procedural decomposition makes things organized Function Built-in Function User Defined Function
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Syntax: modifier returnType methodName(parameters) { Statements… } Example: public static int add(int a, int b) { int result; result = a + b; return result; } Functions in Java User Defined Function function definition function parameters function return value function call output
Object Oriented Programming
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING 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 ();
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Class ➢ Class is a blueprint from with the objects 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 } Object 1 Object 2 Object 3 Object 4
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Super Class Child Class Inheritance ➢ Inheritance is a mechanism through which one object acquires all the properties and behaviors of parent object. Mobile Apple Samsung Google
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Encapsulation ➢ Encapsulation is the mechanism that binds together code and the data it manipulates together.
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Polymorphism ➢ Polymorphism is the ability of a variable, function or object to take on multiple forms. Mobile Camera Remote MP3 Player
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Abstraction ➢ Abstraction is the methodology of hiding the implementation details from the user and only providing the functionality to the users.
Summary
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Session In A Minute Java Introduction Features of Java Java Environment How does Java work Data Types in Java Data Operators in Java
` https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING Session In A Minute Functions in Java OOPS
Java Training | Java Tutorial for Beginners | Java Programming | Java Certification | Edureka

Java Training | Java Tutorial for Beginners | Java Programming | Java Certification | Edureka