Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Aditya jakkaraju javaproject


Published on

Java Project

  • Be the first to comment

  • Be the first to like this

Aditya jakkaraju javaproject

  1. 1. <ul><li>BY- </li></ul><ul><li>J. ADITHYA BHARADWAJ </li></ul>PROJECT ON COMPUTER APPLICATIONS
  3. 3. Comparison between structured programming and object oriented programming. <ul><li>Conventional programming using high-level languages such as BASIC, COBAL, FORTRON and C are commonly known as procedure oriented programming. </li></ul><ul><li>An object oriented programming(OOP)is a modular approach, which allows the data to be applied within stipulated program area. It also provides the reusability feature to develop productive logic, which means to give more emphasis on data. </li></ul>
  4. 4. Basic elements of object oriented programming. <ul><ul><li>Objects </li></ul></ul><ul><ul><li>Classes </li></ul></ul><ul><ul><li>Encapsulation </li></ul></ul><ul><ul><li>Data hiding </li></ul></ul><ul><ul><li>Inheritance </li></ul></ul><ul><ul><li>Polymorphism </li></ul></ul><ul><ul><li>Dynamic binding </li></ul></ul>
  5. 5. Object <ul><li>Object is a unique entity, which contains data and functions together in an object oriented programming language. </li></ul><ul><li>Some real world objects </li></ul>
  6. 6. Class The class is a set of similar objects. Each object of a class possesses same attribute and common behavior defined within the same class.
  7. 7. Attribute <ul><ul><li>An attribute deals with the data values of an object in a class to make the object distinct. </li></ul></ul><ul><ul><li>The belongings to a class that is data members contained within a class are termed as attributes of a class. </li></ul></ul>Example- class student: Attributes (data values) Name Class roll_number Date_of_birth Blood_group Address Phone_number Methods (function) Get data( ) Display( )
  8. 8. Object factory <ul><li>As a class produces objects of similar type hence, it is termed as object factory. </li></ul>
  9. 9. Benefits of object oriented programming <ul><li>There are many benefits of OOP to the programmers as well as the users. </li></ul><ul><li>You can extend the use of existing class through inheritance. </li></ul><ul><li>Using the concept data hiding can generate secured program. </li></ul><ul><li>Multiple instances of an object can be generated to co-exist without any </li></ul><ul><li>interference. </li></ul><ul><li>You can create different modules in your project through objects. </li></ul><ul><li>It is highly beneficial to solve complex problems. </li></ul><ul><li>It is easy to modify and maintain software complexity. </li></ul>
  10. 10. History of Java <ul><li>James A gosling, (born on may 19, 1955, near calgary, alberta, canada) is a famous software developer. In 1977, he completed his graduation as a B.Sc. In computer sciences from the university of calgary. In 1981, he was honoured a Ph.D in computer science from carnegie mellon university. He developed many compilers and mail system. </li></ul>
  11. 11. Development of Java <ul><li>Java is an object oriented programming language developed primarily by James gosling and colleagues at Sun Micro Systems. This language was initially called Oak. </li></ul>
  12. 12. Types of java programming <ul><li>A Java program can be written in the following two ways: </li></ul><ul><li>Stand alone system (java application) </li></ul><ul><li>Internet applets (java applets) </li></ul>
  13. 13. Features of Java <ul><li>Java possesses the following features: </li></ul><ul><li>Java is an OOP language. </li></ul><ul><li>Java programs are both compiled and interpreted. </li></ul><ul><li>Java is a robust programming language. </li></ul><ul><li>Java programs are platform independent. </li></ul><ul><li>It is multi threaded language. </li></ul>
  14. 14. Compiler and Interpreter <ul><li>If all the instructions are converted to machine level language at once and all the errors are listed together, then the software is known as compiler. </li></ul><ul><li>The software, by which the conversion of high-level instructions is performed line by line to machine level language, is known as interpreter. </li></ul>New mascot of java
  15. 15. Byte code and JVM <ul><li>The program written in Java is compiled for conversion to an intermediate code called byte code. </li></ul><ul><li>JVM acts as a virtual processor, which processes the byte code to machine code instructions for various platforms. This is called java virtual machine. </li></ul>
  16. 16. Java libraries <ul><li>Java.lang </li></ul><ul><li> </li></ul><ul><li>Java.applet </li></ul><ul><li> </li></ul><ul><li>Java.awt </li></ul><ul><li>Java.txt </li></ul><ul><li>Java.math </li></ul>
  17. 17. Java reserved words <ul><li>Reserve words or key words are those words, which are preserved with the system. </li></ul>
  18. 18. Comment statements in java programming <ul><li>Sometimes it becomes difficult for user to understand the logic applied in a program particularly when the other person has developed it. In such cases, the programmer keeps mentioning the purpose and action being taken in different steps. This can be possible only by applying comment statement in the program. </li></ul>
  19. 19. Output statements in java <ul><li>When you use system.out.println ( ) statement, the cursor skips the line and passes to the next line after displaying the result. </li></ul><ul><li>These statements are used to get the output of the program or to display messages on the screen. </li></ul>
  20. 20. Java programming with blueJ <ul><li>Introduction to blueJ </li></ul><ul><li>blueJ is a free java environment from Monash university, Australia. It is a window based platform for java development kit(JDK). </li></ul><ul><li>It requires to install JDK 1.3 version or more before installing blueJ. </li></ul>
  21. 21. Features of blueJ <ul><li>The compilation as well as execution process is comparatively easier than java . </li></ul><ul><li>It is menu driven approach. Hence ,it makes the system easier for the user to work on windows platform. </li></ul><ul><li>To inculcate good programming skills, a sample program appears on the screen as soon as the user defines a class. </li></ul><ul><li>After compilation, it shows the error, if any, present in the program. </li></ul><ul><li>You can also down load a lava program from internet. </li></ul><ul><li>You can also share programs from non-blueJ environment. </li></ul>
  22. 22. Steps to start blueJ <ul><li>At first, double click on the blueJ icon, which is present on the desktop. </li></ul><ul><li>You can see project option on menu bar of blueJ windows, which enables you to create a directory. </li></ul><ul><li>A project is created after typing the name in the space provided in the file name and click create. </li></ul><ul><li>Write class name in the space provided and click OK. </li></ul><ul><li>Now just double click the folder welcome to open the class welcome. </li></ul><ul><li>Select and delete the sample structure. </li></ul><ul><li>Now you start writing your program. </li></ul>
  23. 23. Compilation of java program <ul><li>After writing a java program, it is to be compilated and then only the program can be executed. On the screen, click the option compile. If the program doesn't have any error then at the bottom of the screen a message displays “class compiled”. </li></ul>
  24. 24. Execution of java program <ul><li>Select the icon of the class (say welcome)on the screen and click the right button of the mouse. </li></ul><ul><li>A dropdown menu appears on the screen. Now select and click void main (args). </li></ul><ul><li>A method call window appears on the screen; click OK. </li></ul><ul><li>The desired output of the program is seen. </li></ul>
  25. 25. Data types in java <ul><li>Introduction </li></ul><ul><li>compiler contains a phase called the storage assignment phase. This phase allocates memory for different variables used in a program. It also creates the structure to store the data efficiently in a location. </li></ul><ul><li>Types of data are: </li></ul><ul><li>Tokens </li></ul><ul><li>Literals </li></ul><ul><li>Punctuators </li></ul><ul><li>Separators </li></ul><ul><li>Operators </li></ul><ul><li>Primitive type </li></ul><ul><li>Non primitive type </li></ul><ul><li>Integer type </li></ul><ul><li>Floating type </li></ul><ul><li>Character type </li></ul><ul><li>Boolean type </li></ul>
  26. 26. <ul><li>I thank our computer teacher, miss Sonia for giving us this project. Through this project we learnt many concepts and programs in java and object oriented programming. </li></ul>Acknowledgements