Premium Essay

Java Programming Execution Phases

In: Other Topics

Submitted By shalemali
Words 696
Pages 3
Handout 3 Advanced Programing in Java

Umair Javed CS-391

Java Program Development and Execution Steps
Java program normally go through five phases. These are 1. 2. 3. 4. 5. Edit, Compile, Load, Verify and Execute

We look over all the above mentioned phases in a bit detail. First consider the following figure that summarizes the all phases of a java program.

Phase 1

Editor

Disk

Program is created in the editor and stored on disk. Compiler creates bytecodes and stores them on disk.

Phase 2

Compiler

Disk Primary Memory

Phase 3

Class Loader Class loader puts bytecodes in memory.

Disk

Primary Memory

Phase 4

Bytecode Verifier

Bytecode verifier confirms that all bytecodes are valid and do not violate Java’s security restrictions.

Phase 5

Primary Memory Interpreter

Interpreter reads bytecodes and translates them into a language that the computer can understand, possibly storing data values as the program executes.

Umair© 2005, All Rights Reserved

-1-

TA: Munawar Nadeem

Handout 3 Advanced Programing in Java

Umair Javed CS-391

Phase 1: Edit
Phase 1 consists of editing a file. This is accomplished with an editor program. The programmer types a java program using the editor like notepad, and make corrections if necessary. When the programmer specifies that the file in the editor should be saved, the program is stored on a secondary storage device such as a disk. Java program file name ends with a .java extension. On Windows platform, notepad is a simp le and commonly used editor for the beginners. However java integrated development environments (IDEs) such as NetBeans, Borland JBuilder, JCreator and IBM’s Ecllipse hava built- in editors that are smoothly integrated into the programming environment.

Phase 2: Compile
In Phase 2, the programmer gives the command javac to compile the program. The

Similar Documents

Premium Essay

Essay

...For Exercises 1- 10 , match the activity with the phase of the object-oriented methodology. A. Brainstorming B. Filtering C. Scenarios D. Responsibility algorithms |1. |Reviewing a list of possible classes, looking for duplicates or missing classes. | | |B | |2. |Asking "what if" questions. | | |C | |3. |Assigning responsibilities to classes. | | |C | |4. |Generating first approximation to the list of classes in a problem. | | |A | |5. |Assigning collaborators to a responsibility. | | |C ...

Words: 2569 - Pages: 11

Premium Essay

Software Engineering

...Introduction to Software Engineering Somnuk Keretho, Assistant Professor Department of Computer Engineering Faculty of Engineering, Kasetsart University Email: sk@nontri.ku.ac.th URL: http://www.cpe.ku.ac.th/~sk Somnuk Keretho/Kasetsart University Outline of this presentation • • • • • • Scope of Software Engineering Object-Oriented Software Development Software Process Software Life-Cycle Models Object Orientation Software Quality Assessment Reference to Chapter 1/2/3 of “Software Engineering with JAVA”, S.R. Schach, McGraw-Hill, 1997. Somnuk Keretho/Kasetsart University 2 Scope of Software Engineering • Software engineering is a discipline whose aim is the production of fault-free software, that is delivered on time, within budget, and satisfies the user’s needs. Somnuk Keretho/Kasetsart University 3 Scope of Software Engineering • Historical Aspects: – 1967, a NATO group coined the term “Software Engineering” – 1968 NATO Software Engineering Conference concurred that “Software production should be an engineering-like activity”. – Using philosophies and paradigms of established engineering disciplines to solve “Software Crisis: that the quality of software was generally unacceptably low and that deadlines and cost limits were not being met”. Somnuk Keretho/Kasetsart University 4 Scope of Software Engineering • Economic Aspects – Software Engineering v.s. Computer Science • The computer scientist investigates...

Words: 1590 - Pages: 7

Premium Essay

Soot Framework

...1. Introduction Java language is a hybrid language neither compiled, nor interpreted. The Java language aims to provide the speed of a compiled language, as well as portability of an interpreted language. Because a java code can run on any platform with Java Virtual Machine installed some drawbacks are introduced in terms speed of the execution compared to compiler languages such as C and C++. To make the java code as portable as it is, after compilation, the java code is converted into a bytecode. A bytecode is then interpreted by the Java Virtual Machine. To take advantage of Java language and to speed up performance, sophisticated optimization techniques must be utilized. Among many methods of optimizations, such as directly manipulating the bytecode, or annotating the bytecode, “The Soot Framework” is a well developed tool for optimizing the java bytecode to improve performance. The Soot Framework manipulates and modifies any java code and generates an optimized bytecode. The optimized bytecode can be run on any Java Virtual Machine. The soot framework is designed in a way that java code can be optimized module by module, or the whole program. 2. The project Our team consists of Shivshankar Kanawade, Batbold Myagmarjav, and Taeghyun Kang. The project is to research the possibility of automatically detecting shared variables in a concurrent program utilizing The Soot Framework. The team also seeks to identify the shared variable characteristics with the help of intermediate...

Words: 1674 - Pages: 7

Premium Essay

Docs

...Performance and Cost Evaluation of an Adaptive Encryption Architecture for Cloud Databases Abstract: The cloud database as a service is a novel paradigm that can support several Internet-based applications, but its adoption requires the solution of information confidentiality problems. We propose a novel architecture for adaptive encryption of public cloud databases that offers an interesting alternative to the tradeoff between the required data confidentiality level and the flexibility of the cloud database structures at design time. We demonstrate the feasibility and performance of the proposed solution through a software prototype. Moreover, we propose an original cost model that is oriented to the evaluation of cloud database services in plain and encrypted instances and that takes into account the variability of cloud prices and tenant workloads during a medium-term period. KEYWORDS: Cloud database, confidentiality, encryption, adaptivity, cost model. LIST OF CONTENTS Page No List of Figures viii List of Tables ix 1. Introduction 1.1 Purpose 1.2 Scope 1.3 Motivation 1.3.1 Definitions 1.3.2 Abbreviations 1.3.3 Model Diagrams 1.4 Overview 2. Literature Survey 2.1 Introduction 2.2 History ...

Words: 17343 - Pages: 70

Free Essay

Nadda

........................................................................ 2 JAVA .................................................................................................................................................................................................. 3 C#....................................................................................................................................................................................................... 4 Database/SQL ................................................................................................................................................................................... 6 Web Development............................................................................................................................................................................ 7 SDLC................................................................................................................................................................................................... 9 UML ................................................................................................................................................................................................. 11 1 Review Guide OOPS Resources:  http://en.wikipedia.org/wiki/Object-oriented_programming Object-oriented programming (OOP) is a programming paradigm using "objects" – usually instances of a class – consisting of...

Words: 2407 - Pages: 10

Free Essay

Snapshot

...Pomona 3801 West Temple Avenue Pomona, CA 91768 Abstract Integrated Development Environments are excellent production tools for intermediate and advanced programming students and even beginners after they have learned the core concepts (stored data, stored programs, computer instructions, and the anatomy of the computer). Most authors of introduction to programming books recognize this by their inclusion of one to twenty pages on this topic. This paper presents how using a simulated assembler (a tool for learning) with a simple assembly language can introduce the beginning student to the core concepts without having to be concerned with all the exceptions and rigor of a full assembler language. The Simulated Assembler with a full viewable Computer Machine (Glass Bottom Computer) and the easy procedures for using it in a first programming course are illustrated. Using the assembler tool described here should provide an increase in learning via a polytechnic (learn by doing) approach. A comparative analysis of using the assembler in an introduction to object programming course is provided. Keywords: assembler, simple machine, software tools, language, programming, object oriented, machine language 1. INTRODUCTION The growth in hardware technology has allowed the theories of modern programming languages to become a reality. In the beginning, developers of computer languages were hindered by the lack of processing speed and memory to implement their vision...

Words: 3467 - Pages: 14

Premium Essay

What You Need to Know About Programming Languages

...bullie Pt1420 intro to programming Unit 1 assn.1 exploring programming languages The progression of computer programming languages was made possible by the programmer's search for efficient translation of human language into something that can be read and understood by computers. The languages generated, called machine code, have high levels of abstraction, which hide the computer hardware and make use of representations that are more convenient to programmers. As programs evolve and become more sophisticated, programmers found out that certain types of computer languages are easier to support. As expected in a dynamic discipline, there is no standard for categorizing the languages used in programming. There are, in fact, dozens of categories. One of the most basic ways to categorize the languages is through a programming paradigm, which gives the programmer's view of code execution. Among the languages classifications according to programming paradigm are: o Object-Oriented Programming Languages Known as the newest and most powerful paradigms, object-oriented programming requires the designer to specify the data structures as well as the types of operations to be applied on those data structures. The pairing of data, and the operations that can be done on it is called an object. A program made using this language is therefore made up of a set of cooperating objects instead of an instructions list. The most famous object-oriented programming these days are C#, C , Visual...

Words: 585 - Pages: 3

Free Essay

Watermarking

...(compsac2000), Taipei, Taiwan, Oct. 2000. A Practical Method for Watermarking Java Programs Akito Monden Graduate School of Information Science, Nara Institute of Science and Technology akito-m@is.aist-nara.ac.jp Hajimu Iida Information Technology Center, Nara Institute of Science and Technology iida@is.aist-nara.ac.jp Ken-ichi Matsumoto Graduate School of Information Science, Nara Institute of Science and Technology matumoto@is.aist-nara.ac.jp Katsuro Inoue Graduate School of Engineering and Science, Osaka University inoue@ics.es.osaka-u.ac.jp Koji Torii Nara Institute of Science and Technology torii@is.aist-nara.ac.jp Abstract viewers[6][22]. As shown in figure 1, class viewers expose the internals of a class file, displaying class structure (fields and methods), thus, program users may know how to use that class file without asking to the original programmer. To make matters worse, program users can obtain source codes of a class file by using Java decompilers[15], such as SourceAgain[2], Jad[14], Mocha[24], etc. In this situation, the Java program developer’s intellectual property will be infringed if a program user steals anyone else’s class file and builds it into his/her own program without the original programmer's permission. We call this copyright infringement a program theft, which is one of the reasons why many companies hesitate to use Java in the real software development. Although we have copyright law to prohibit...

Words: 4625 - Pages: 19

Free Essay

Compute Unified Device Architecture

...speed Multi-core processors. Multi-core processors are no longer the future of computing-they are the present day reality. With the rise of multi-core architectures the question of the hour is: how to program massively parallel processors. Nvidia, the pioneer in GPU design, has come up with an advanced user-friendly architecture, “THE CUDA” that enables dramatic increases in computing performance by harnessing the power of the GPU (graphics processing unit). CUDA (an acronym for COMPUTE UNIFED DEVICE ARCHITECTURE) reduces the complexity of the parallel programming to a great extent. The best feature of CUDA is that we can program the GPUs using C, JAVA and other high level programming environments. In this paper, we present the basics of CUDA programming with the need for the evolution of the same. This paper also presents the different applications of CUDA, which tells us why and how CUDA scores over other parallel programming architectures. Introduction: Parallelism is the age old technique used for the efficient data processing. The same technique re-emerging into TLP i.e., Thread Level Parallelism and in combination with some finely developed manufacturing technologies provided the world with huge benefits in the form of multi cores. Generally a GPU (Graphical Processing Unit) consists of multiple number of cores for the same reason as gaming is all about “all happening at the same time”, which requires parallelism. Each new generation of GPUs...

Words: 1310 - Pages: 6

Free Essay

Project Management for the Central Goverment

...Requirements…………………………………….……………………………………..8 3.2 Output Requirements………………………………………………………………………..8 3 3.3 Software Requirements…………………….………………………………………………..8 3.4 Hardware Requirements……………………………………………………………………..8 4. TOOL USED FOR DEVELOPMENT 4.1 NetBeans…………………………………………………………………………….……………….10 4.1.1 Features and Tools…………………..……………………………..………..…….10 4.1.2 Source Code Editor………………………………………………………………….10 4.1.3 GUI Builder………………………………………………………………………………..11 5. TECHNOLOGY TO BE USED 5.1 Introduction to Java…………………………………………………………..……………..13 5.1.1 Java Virtual Machine……………………………………………….…………..13 5.1.2 Principles………………………………………………………………………………..13 5.1.3 Versions……………………………………….………………………………………...14 5.1.4 Features of Java Language…………………………………………………..14 5.2 Multi Threading………………………………………………………………………….........16 5.2.1 Benefits of using threads……………………………………………………..17 5.2.2 Life Cycle of a Thread……………………………………………………………17 5.2.3 Thread Priority in Java………………………………………………………….18 5.3 Socket Programming in Java……….…………………………………………………..19 5.3.1 Ports and...

Words: 12882 - Pages: 52

Premium Essay

Web Application

...Chapter – 1 INTRODUCTION The world as we know it today is centered on the workings and ability of the World Wide Web. Internet security, however, is one area of concern and poses one of the biggest challenges to this internet savvy era. Our interaction with the internet has increased to such an extent , that experience, mixed with continued research has taught us that with each such interaction, we are prone to many malicious attacks, security lapses and even extremely skilled hacking operations. The field of Network Security and Cryptography has come a long way in the past decade, but it is safe to say that there is a lot more work to be done. Here we choose to concentrate on Web Applications and we particularly approach them from the developer’s perspective. With every step taken towards better security on the internet, end-users are doing their bit to safeguard their systems and data. However, keeping in mind how commercial and competitive the world we live in has become and the manner in which the market for web related products has grown, it becomes imperative for a developer to ensure that his web application is not just marketable as a breakthrough user friendly concept but also as a secure one. We imagine a world where, every skilled developer is able to make phenomenal applications and is able to provide his users with a large amount of credibility and reliability in terms of security. We aim to conceptualize and subsequently generate a security tool exclusively...

Words: 6435 - Pages: 26

Premium Essay

Hotel Management System

...ONLINE HOTEL MANAGEMENT Mini Project Report On 2010 ONLINE HOTEL MANAGEMENT In the partial fulfillment of 4th semester of MCA By Priyesh Kumar Regn_no:95580034 DEPARTMENT OF COMPUTER APPLICATIONS COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY COCHIN -22 PRIYESH KUMAR, DCA, CUSAT, Kochi-22 1 ONLINE HOTEL MANAGEMENT CERTIFICATE 2010 COCHIN UNIVERSITY OF SCIENCE AND TECHNOLOGY COCHIN-22 This is to certify that the project report entitled “ONLINE HOTEL MANAGEMENT” is a bonafide record of the work done by PRIYESH KUMAR (Regno.95580034) As The M.C.A 4TH semester Mini project.. JUNE 2010 ______________ Internal Examiner ______________ Head of the Department Submitted on: ______________ PRIYESH KUMAR, DCA, CUSAT, Kochi-22 2 ONLINE HOTEL MANAGEMENT CONTENTS  ACKNOWLEDGEMENT  SYNOPSIS 1. INTRODUCTION 1.1. OBJECTIVE 1.2.PROBLEM DEFINITION 1.3. SYSTEM ENVIRONMENT 2. SOFTWARE QUALITY ASSURANCE PLAN 2.1. PURPOSE 2.2. SCOPE 2.3. DOCUMENT OVERVIEW 2.4. TASKS 2.5. IMPLEMENTATION 2.6. DOCUMENTATION 2.7. AUDIT 2.8. SOFTWARE DEVELOPMENT PROCESS 2.9. DOCUMENT REVIEW 2.10 TESTING 3. SYSTEM ANALYSIS 3.1 SYSTEM STUDY 3.2FEASIBILITY STUDY 2010 PRIYESH KUMAR, DCA, CUSAT, Kochi-22 3 ONLINE HOTEL MANAGEMENT 4. SOFTWARE REQUIREMENTS SPECIFICATION 2010 4.1User Interface Requirements 4.2Database Requirements 4.3Functional Requirements 4.4Non-Functional Requirements 4.5Other Requirements and Constraints 5. SYSTEM DESIGN 5.1 ARCHITECTURAL DESIGN 5.2 PROCESS DESIGN 5.3 ER-DIAGRAMS 6. DATA...

Words: 7751 - Pages: 32

Premium Essay

Hvfgfgh

...ASSIGNMENT # 1: DATA COMMUNICATION AND SOCKET PROGRAMMING MARIA SALEEM BAHRIA UNIVERSITY KARACHI CAMPUS BSE 5B (35925) DEPARTMENT: SOFTWARE ENGINEERING mariasaleem42@gmail.com I. INRODUCTION Data communication is used to transfer data form one device to others. While socket programming is about that a pc is attached to a socket in a port and it is then connected to other socket to deliver data into that. I.I IMPORTANCE OF DATA COMMUNICATION: The crucial innovation of the data phase is interchanges. Information interchanges and systems administration is a really worldwide zone of learning, equally on the grounds that the innovation empowers worldwide correspondence, and on the grounds that new advances and requests regularly rise up out of an assortment of nations and extent quickly all over the globe. Information correspondence is broadcast of advanced information over correspondence frameworks. It takes the goal of transferring any archives and files at most elevated velocities plus least cost. The data needs to stay imparted quickly and well-timely. Since industry prerequisites develop to encounter innovative, rising trade chances, the instruments compulsory have the capacity to quickly adjust in what way the data is found, collected, and exhibited. I.2 OSI MODEL: Seven layered OSI model was invented by ISO (International standard organizations) for providing benefit to merchants and system overseers in a manner these know how to pick up a superior comprehension by what method...

Words: 2562 - Pages: 11

Premium Essay

Electronic Banking

...CONTENTS S.No. Title 1 Introduction 1.1 project background 1.2 Problem statement 1.3 Project objectives 2 Project Deliverables 2.1 Introduction project management and 2.2 planning 2.3 Analysis 2.4 Design 2.5 Implementation 2.6 2.7 3 Testing Evaluation Research 3.1 Research on strategy 3.2 Research on similar project 3.3 Research on methodologies Research on Development 3.4 tools 4 References Page Number 1 1 3 3 3 3 4 5 5 6 7 8 8 8 8 9 12 14 1 THE WORKING OF ATM Chapter 1: Introduction 1.1 project background Automated teller Goods (Automatic teller equipment) will often be a growing number of utilized these days as a possible easy and simple, hassle-free assortment with regards to guide Tellers. However, there may be present research upwards with regards to quite a few apparent many different numerous insecurities by way of ATMs, their own features and the way they may be successful. This kind of forms identifies what sort of financial institution works usually in addition to signifies specific issues regarding security through employing these kinds of Cash machine gadgets. Evaluation signifies that existing Bank techniques appear to offer we “security through obscurity” instead of the a lot encouraged “open, specialist review” strategy. This may at risk of become due to Financial institution businesses never improving their unique executive so that we can preserve computability along with ATM machine vendors. Work with a considerably guarded style concerning financial...

Words: 5025 - Pages: 21

Free Essay

Concepts of Programming Languages

...CONCEPTS OF PROGRAMMING LANGUAGES TENTH EDITION This page intentionally left blank CONCEPTS OF PROGRAMMING LANGUAGES TENTH EDITION R O B E RT W. S EB ES TA University of Colorado at Colorado Springs Boston Columbus Indianapolis New York San Francisco Upper Saddle River Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal Toronto Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo Vice President and Editorial Director, ECS: Marcia Horton Editor in Chief: Michael Hirsch Executive Editor: Matt Goldstein Editorial Assistant: Chelsea Kharakozova Vice President Marketing: Patrice Jones Marketing Manager: Yez Alayan Marketing Coordinator: Kathryn Ferranti Marketing Assistant: Emma Snider Vice President and Director of Production: Vince O’Brien Managing Editor: Jeff Holcomb Senior Production Project Manager: Marilyn Lloyd Manufacturing Manager: Nick Sklitsis Operations Specialist: Lisa McDowell Cover Designer: Anthony Gemmellaro Text Designer: Gillian Hall Cover Image: Mountain near Pisac, Peru; Photo by author Media Editor: Dan Sandin Full-Service Vendor: Laserwords Project Management: Gillian Hall Printer/Binder: Courier Westford Cover Printer: Lehigh-Phoenix Color This book was composed in InDesign. Basal font is Janson Text. Display font is ITC Franklin Gothic. Copyright © 2012, 2010, 2008, 2006, 2004 by Pearson Education, Inc., publishing as Addison-Wesley. All rights reserved. Manufactured in the United States...

Words: 142253 - Pages: 570