Your SlideShare is downloading. ×
Aditya jakkaraju javaproject
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Aditya jakkaraju javaproject

711
views

Published on

Java Project

Java Project


0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
711
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1.
    • BY-
    • J. ADITHYA BHARADWAJ
    PROJECT ON COMPUTER APPLICATIONS
  • 2. 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. OBJECT ORIENTED PROGRAMMING(OOP)
  • 3. Comparison between structured programming and object oriented programming.
    • Conventional programming using high-level languages such as BASIC, COBAL, FORTRON and C are commonly known as procedure oriented programming.
    • 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.
  • 4. Basic elements of object oriented programming.
      • Objects
      • Classes
      • Encapsulation
      • Data hiding
      • Inheritance
      • Polymorphism
      • Dynamic binding
  • 5. Object
    • Object is a unique entity, which contains data and functions together in an object oriented programming language.
    • Some real world objects
  • 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. Attribute
      • An attribute deals with the data values of an object in a class to make the object distinct.
      • The belongings to a class that is data members contained within a class are termed as attributes of a class.
    Example- class student: Attributes (data values) Name Class roll_number Date_of_birth Blood_group Address Phone_number Methods (function) Get data( ) Display( )
  • 8. Object factory
    • As a class produces objects of similar type hence, it is termed as object factory.
  • 9. Benefits of object oriented programming
    • There are many benefits of OOP to the programmers as well as the users.
    • You can extend the use of existing class through inheritance.
    • Using the concept data hiding can generate secured program.
    • Multiple instances of an object can be generated to co-exist without any
    • interference.
    • You can create different modules in your project through objects.
    • It is highly beneficial to solve complex problems.
    • It is easy to modify and maintain software complexity.
  • 10. History of Java
    • 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.
  • 11. Development of Java
    • Java is an object oriented programming language developed primarily by James gosling and colleagues at Sun Micro Systems. This language was initially called Oak.
  • 12. Types of java programming
    • A Java program can be written in the following two ways:
    • Stand alone system (java application)
    • Internet applets (java applets)
  • 13. Features of Java
    • Java possesses the following features:
    • Java is an OOP language.
    • Java programs are both compiled and interpreted.
    • Java is a robust programming language.
    • Java programs are platform independent.
    • It is multi threaded language.
  • 14. Compiler and Interpreter
    • 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.
    • The software, by which the conversion of high-level instructions is performed line by line to machine level language, is known as interpreter.
    New mascot of java
  • 15. Byte code and JVM
    • The program written in Java is compiled for conversion to an intermediate code called byte code.
    • JVM acts as a virtual processor, which processes the byte code to machine code instructions for various platforms. This is called java virtual machine.
  • 16. Java libraries
    • Java.lang
    • Java.io
    • Java.applet
    • Java.net
    • Java.awt
    • Java.txt
    • Java.math
  • 17. Java reserved words
    • Reserve words or key words are those words, which are preserved with the system.
  • 18. Comment statements in java programming
    • 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.
  • 19. Output statements in java
    • When you use system.out.println ( ) statement, the cursor skips the line and passes to the next line after displaying the result.
    • These statements are used to get the output of the program or to display messages on the screen.
  • 20. Java programming with blueJ
    • Introduction to blueJ
    • blueJ is a free java environment from Monash university, Australia. It is a window based platform for java development kit(JDK).
    • It requires to install JDK 1.3 version or more before installing blueJ.
  • 21. Features of blueJ
    • The compilation as well as execution process is comparatively easier than java .
    • It is menu driven approach. Hence ,it makes the system easier for the user to work on windows platform.
    • To inculcate good programming skills, a sample program appears on the screen as soon as the user defines a class.
    • After compilation, it shows the error, if any, present in the program.
    • You can also down load a lava program from internet.
    • You can also share programs from non-blueJ environment.
  • 22. Steps to start blueJ
    • At first, double click on the blueJ icon, which is present on the desktop.
    • You can see project option on menu bar of blueJ windows, which enables you to create a directory.
    • A project is created after typing the name in the space provided in the file name and click create.
    • Write class name in the space provided and click OK.
    • Now just double click the folder welcome to open the class welcome.
    • Select and delete the sample structure.
    • Now you start writing your program.
  • 23. Compilation of java program
    • 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”.
  • 24. Execution of java program
    • Select the icon of the class (say welcome)on the screen and click the right button of the mouse.
    • A dropdown menu appears on the screen. Now select and click void main (args).
    • A method call window appears on the screen; click OK.
    • The desired output of the program is seen.
  • 25. Data types in java
    • Introduction
    • 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.
    • Types of data are:
    • Tokens
    • Literals
    • Punctuators
    • Separators
    • Operators
    • Primitive type
    • Non primitive type
    • Integer type
    • Floating type
    • Character type
    • Boolean type
  • 26.
    • 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.
    Acknowledgements