You are on page 1of 4

OOPs Story Board

Start with Programming Concepts. 1.Structured Programming :- A technique for organizing and coding computer programs in which a hierarchy of modules is used, each having a single entry and a single exit point, and in which control is passed downward through the structure without unconditional branches to higher levels of the structure. Three types of control flow are used: sequential, conditional, and iteration. 2. Procedural Programming:- This is Programming concept is like a sub-program are subroutine with execute separately it can re reused like a macro but it does not expand in the program it executes separately and control returns to the place where it is called. Two type of Modular Programming concepts: - Procedures and Functions. 3. Modular Programming: - This can be achieved using procedures that have strictly defined channels for input and output, and usually also clear rules about what types of input and output are allowed or expected. Inputs are usually specified syntactically in the form of arguments and the outputs delivered as return values. 4. Object Oriented Programming: - The idea behind object-oriented programming is that a computer program may be seen as comprising a collection of individual units, or objects, that act on each other, as opposed to a traditional view in which a program may be seen as a collection of functions, or simply as a list of instructions to the computer. Each objects can be viewed as an independent little machine or actor with a distinct role or responsibility. 5. Object Based Programming: - In a technical sense, the term Object-based language may be used to describe any programming language that is based on the idea of encapsulating data and code inside objects. Object-based languages need not support based languages that do not support inheritance or subtyping are usually not considered to be true Object-Oriented language. 6. Event Driven Programming: - Unlike traditional programs, which follow their own control flow pattern, only sometimes changing course at branch points, the control flow of event-driven Programs is largely driven by external events. 7. SQL(Structured Query Language): -This is a query based concept which is used in database like oracle. Execution depends on the queries And there are many more. Coming to Java first discussing about the platform independency.

Java is not Platform independent but actually the applications which are developed in java are Platform independent. Compile once and run any where on any operating system. 1. Compiler: - This is program which checks for the syntactic error and translates the high level language code into Machine understandable format all at once. 2. Interpreter: - This is program which checks for the syntactic error and translates line by line and converts each instruction into Machine understandable format and execute. Java has both Compiler and Interpreter First the complier checks for the syntactic error and converts into intermediate code called byte code. This code can run on any operating system provided if the system has a Jvm installed. The Interpreter i.e. Jvm which is specific to Operating Systems which converts the byte code into OS understandable format. It translates line by line into Machine understandable format. i.e. Ways the application which are developed in java are Platform Independent. Then coming to Object Oriented Concepts. 1. Encaptulation: - Combining the data member and function member is called as encapsulation. 2. Inheritance: - Acquiring the Properties from the Parents, super class and subclass. Super class is called the parent class and Subclass is called as child class. Types of inheritances 1. Simple Inheritance: - In this a child class acquires the properties from only one super class then it is simple inheritance. 2. Multi-level: - In this a class has the super class as well as child class i.e. extension of the child class level by level. 3. Multiple Inheritance: - In this a child class acquiring the properties from two or more parent class but it is not supported in java. Abstraction and Polymorphism: - Abstraction is referred to as reducing the i.e. avoiding the redundant code that is achieved though the modularity the more modular is the better abstraction. Polymorphism: - the ability to take more than one form is called as Polymorphism. This can be achieved in two ways static and dynamic polymorphism.

Static Polymorphism and it is also called as early binding. The binding of names before the program is run is called static or early binding. Dynamic Polymorphism and it is also called as late binding. The bindings performed as the program runs are called as dynamic or late binding. Features of java Secure: - Java is secured because there is no possible way of getting the garbage values because of data encapsulation. And also Java doesnt provide direct access to the memory with pointers, no pointers concepts provided for the developers. No unauthorized code we cannot write any code with may disturb other applications or other applications code disturbing the java code. Robust in Memory Management: - Programmer doesnt need to concentrate on the memory because Garbage Collector is a demon thread will run with the jvm and it looks after the unused objects it deletes them. Multi-Threaded Programming: - Java is not Process based it is a thread based so every thing in java is thread and it supports the multi-threading concept. GUI Programming: - In Java we have two packages with helps the developers to write GUI programming easily when compared to other languages. AWT and Swings. Web Based(applets): - In Java the developers are provided with Applets with which Web Based application can be developed. Applet is Program which can be downloaded and sits in the client system. Runtime Exception Handling: - In Java Exception handling is very easy and efficient when compared to the other languages. A class called Exception is Provided and developers can write user defined Exceptions also. Networking Based Applications: - Java API provides java.net package with which the networking can be easily done. Compared to other language it is much easily to implement with provided socket class and datagram class. Java is provided in three additions: J2SE: - Java 2 Standard version with which developers can develop desktop applications more efficiently. J2EE: - Java 2 Enterprise Edition with which developers can build the huge Enterprise applications. J2ME: - Java 2 Micro Edition with which developers can build the application for the mini or micro devices

Java Program Compilation and Execution Flow: Write a java program and save it with filename. Java and then compile it javac filename.java Then u will find a filename.class generated then run the program with java filename. If we observe the java file public static void main (String args[]) Here public is access specifier and static is the means class member it will be loaded into memory at the time of loading of the class and main is the method which specifies the starting point of the program it is not mandatory to have main method in every class. String is a class and which is provided to send the command line arguments if no arguments are sent then empty array is submitted to the method. And also System.out.println() at this point of time we can say it is used for outputting the values System is a class in which out is PrintStream object which is static and println is method. Class is the idea to create the object and every class name should be in Capital letters. A class is encapsulation of attribute and methods. A class should have first attributes and then the constructors and then the methods. Instances can be created with the class name with a reference variable and new with constructor of that class; Variable are of two types Instance variables and Reference variables, objects reference is stored in the Reference variables. If any instance variable are not initialized then the java run time environment with look after to initialize it with default values. Constructors are same as the methods but they dont have the return types and they will have the same name as the class. The constructors should be used to initialize the variables. The class can have any number of overloaded constructors. Overloading means writing the same method with different parameters. this is key word which is used to refer the current object. Method is the behavior or the functionality which we want to reuse can be written in this. The return statement should be the last statement of the method because the code which is written below the return statement will become unreachable. If we want to overload the methods the argument must differ.

You might also like