• View

  • Download

Embed Size (px)





  • Starting with simple regular handsets which were used just for making phone calls, mobiles have changed our lives and have become part of it. Now they are not used just for making calls but they have innumerable uses and can be used as a Camera , Music player, Tablet PC, T.V. , Web browser etc . And with the new technologies, new software and operating systems are required.World is contracting with the growth of mobile phone technology. As the number of users is increasing day by day, facilities are also increasing.NEED FOR MOBILITY SOLUTIONS

  • NEED FOR MOBILITY SOLUTIONSWe are in Mobile Internet Computing.Technology Reach is in Billions not in Millions. Customers/Partners/Employees are more on mobility.


  • REFRESHMENT OF OOPS What is OOPS ?ObjectClassAbstractionEncapsulationInheritance Polymorphism(Run Time & Compile Time)


  • Object Oriented Programming System

    Object Oriented Programming is a methodology to design a program using Classes and Objects.

    It simplifies the software development and maintenance by providing some concepts:

    Object ClassInheritancePolymorphismAbstractionEncapsulation

  • OBJECTA runtime entity that has state and behavior is known as Object.

    Object= data + method ,Object is an instance of a class.

    An object has these characteristics:

    State: represents the data of an Object.Behavior: represents the behavior of an Object.Identity: object is typically implemented via a unique ID.

    Real time Example:Pen is an object. Its name is Reynolds, color is White etc,.Known as it state.It is used to write, so Writing is its behavior.


    A Class is a group of objects that have common property. (or) Collection of Objects. It is a Template or Blue Print from which objects are created.

    Syntax to declare a Class:

    Class { data member; method; }

  • Example for Class and Object: Class student { String name = Target Soft Systems ; int phoneno = 9382383393; public static void main( string[] args) { Student s1 = new student(); // object System.out.println(Name is:; System.out.println(Phone No: +s1.phoneno); }}Output: Name is: Target Soft Systems Phone No: 9382383393

  • ABSTRACTIONAbstraction is a process of hiding the implementation details and showing only functionality to the user. (OR)It highlights the essential things to the user and hides the non- essential things.

    Real Time Example:Sending SMS: you just type the text and send the message you dont know the internal processing about message delivery.Syntax to declare the abstract class: Abstract class < class- name> {



    Encapsulation is a process of wrapping code and Data together into a single unit.

    We can calculate a fully encapsulated class by making all the data members of the class private now we can use setter and getter methods to set and get the data in it.

    In a encapsulated class we can access only the methods we cant able to access the data that scenario is called Data Hiding.

  • INHERITANCEInheritance is a mechanism in which one object acquires and the properties and behaviors of parent class. A new class derived from old class.Syntax for Inheritance:class subclass name extends super class name{

    }extends is a key word is used to inherit one class for another class.On the basis of class, there can be three types of inheritance single, multilevel and Hierarchical. Multiple and Hybrid is supported through interface only. To reduce the complexity and simplify the language, multiple interfaces are not supported in Java.

  • POLYMORPHISMIn general polymorphism is a particular thing behave differently in a different situation

    Two types of Polymorphism: Compile time Polymorphism Run time PolymorphismRun time Polymorphism Example: Method Overloading.Compile time Polymorphism Example: Method Overriding.

    Real time Example: Mobile Phone: It acts like a phone where you calling to someone. It acts like a camera whiles you taking a snap. It acts like a Music player whiles you hearing song from that.

  • Run time PolymorphismMethod overloading:Method having same name but difference in the number of arguments and its data type.

    Example:Sum( int a, int b)Sum( int a, int b, int c)Sum( float a, float b)Sum( float a, float b, float c)

    For example the entire method names are same but the main difference in the number of arguments and its data type.

  • Compile Time Polymorphism

    Method Overriding:

    Method having same name, same number of arguments and its data type.

    overriding methodMUSThave the same argument list (if not, it might be a case of overloading)

    overriding methodMUSThave the same return type; the exception iscovariant return(used as of Java 5) which returns a type that is a subclass of what is returned by the over riden method

  • What is java? Introduction about JDK ,JRE,JVMJava ME, Java SE, Java EEHello World Example in AndroidUsage of this , Super , final KeywordAccess Modifierstry, catch, finally


  • What is Java?Java is a programming language and a platform.Java is a case sensitive.

    Java is :Object Oriented: In Java, everything is an Object. Java can be easily extended since it is based on the Object model.High Performance: With the use of Just-In-Time compilers, Java enables high performance.Dynamic: Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.

  • What is JDK?

    JDK is an acronym for Java Development Kit.

    It contains JRE + development tools.The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc) and other tools needed in Java development.

  • What is JRE?The Java Runtime Environment (JRE) is a set of software tools for development of Java applications. It combines the Java Virtual Machine (JVM), platform core classes and supporting libraries.JRE is part of the Java Development Kit (JDK), but can be downloaded separately.

    JRE was originally developed by Sun Microsystems Inc., a wholly-owned subsidiary of Oracle Corporation. Also known as Java runtime.


  • What is JVM?A Java virtual machine (JVM) is a virtual machine that can Execute Java byte code.

    It is the code execution component of the Java platform.JVM performs four main tasks:Loads codeVerifies codeExecutes codeProvides runtime environment

  • What is the difference between JDK,JRE,JVM?Java Virtual Machine (JVM) is an abstract computing machine. Java Runtime Environment (JRE) is an implementation of the JVM. Java Development Kit (JDK) contains JRE along with various development tools like Java libraries, Java source compilers, Java debuggers, bundling and deployment tools.

  • Hello world Program in Java

    Class hello world test{

    public static void main(String[] args){

    System.out.println( Hello World);


  • Class:: is used to declare a class in Java.

    public:: is an access specifires which represents visibilityit means visible to all.

    static:: is a keyword, if we declare any method as static is known as static method. The core of advantage of static method is that there is no need to create object to involve the static method.

    void:: is the return type of the method it means it doesnt return any value.

    main:: represents start up of the Program.

    String args[]:: is used for command line arguments.

    System.out.println():: is used to print statement.

  • this (Keyword)In Java this is a reference variable that refers to the current object.

    Usage of this Keyword:this keyword can be used to refer current class instance variable.this keyword can be used to involve current class constructor.this keyword can be used to involve current class method.this keyword can be passed as an argument in the method call.this keyword can be passed as an argument in the constructor call.this can also be used return the current class instance.

  • Super (Keyword)

    Super keyword is a reference variable that is used to refer immediate parent class object.

    Usage of super (keyword):

    Super is used to refer immediate parent class instance variable.Super() is used to involve immediate parent class constructor.Super is used to involve immediate parent class method.

  • final (keyword)The final keyword in java is used to restrict the user. The final keyword can be Variable Method ClassSyntax:final< variable name>final ();final { }If you make any variable as final you cannot change the value of final variable (it will be constant).If you make any method as final you cannot override it.If you make any class as final you cannot extend it.

  • Access modifiers

    The access modifier specifies of a data member, method, constructor or class.

    There are 4 types of access modifiers. private default protectedpublic

  • private:: the private acce