VILLASAN Object-Oriented Programming PDF
Document Details
Uploaded by MonumentalSpatialism
FEU Manila
Tags
Summary
These technical notes cover object-oriented programming, with focus on the Java programming language, including its features, components, and applications. The contents likely encompass the fundamentals of object-oriented programming paradigms and concepts, showcasing examples and relevant details in programming languages.
Full Transcript
CCS0023 – MODULE 1 SUBTOPIC 1 OBJECT ORIENTED PROGRAMMING Oak What was Java originally called? James Gosling; Who developed Java and at what company did they work in which is now a subsidiary of Sun Microsystems oracle corporation? 1995 Java...
CCS0023 – MODULE 1 SUBTOPIC 1 OBJECT ORIENTED PROGRAMMING Oak What was Java originally called? James Gosling; Who developed Java and at what company did they work in which is now a subsidiary of Sun Microsystems oracle corporation? 1995 Java was released in ______ as a core component of Sun Microsystems' Java platform. It has derived much of its syntax from C and C++ but has a simpler object model and fewer Java low-level facilities. _______ is a general-purpose, concurrent, class-based, object oriented language that is Java specifically designed to have as few implementation dependencies as possible The Java source code files (files with.java extension) are compiled into a format called Java interpreter bytecode (files with.class extension), which can be executed by a ___________..java What is the file extension of Java programs? bytecode (.class) What do you call the compiled format of java? What is its extension? Java was intended for use in ____’s project research to work on a programming software to Sun’s control electronic devices World Wide Web Java was modified to take advantage of the ______________. WebRunner The _______, later named as _______, was the very first web browser created in Java. HotJava Netscape Navigator In 1995, the ________ internet browser was also developed to support Java The 5 Features of Java Include: 1. Simple, object-oriented, and familiar NONE 2. Robust and secure 3. Architecture neutral and portable 4. High performance 5. Interpreted, threaded, and dynamic Java programming language include a simple language that can be programmed without Simple, object- extensive programmer training while being attuned to current software practices. The oriented, and familiar fundamental concepts of Java technology are grasped quickly; programmers can be productive from the very beginning. A feature of java that provides extensive compile-time checking, followed by a second level Robust and Secure of run-time checking. Architecture neutral A feature of java that means Java technology is designed to support applications that will be and portable deployed into heterogeneous network environments The Java platform achieves superior performance by adopting a scheme by which the interpreter can run at full speed without needing to check the run-time environment. In High performance general, users perceive that interactive applications respond quickly even though they're interpreted. The Java interpreter can execute Java bytecodes directly on any machine to which the Interpreted, threaded, interpreter and run-time system have been ported. In an interpreted platform such as Java and dynamic technology-based system, the link phase of a program is simple, incremental, and lightweight. Java 2 Standard Java Edition J2SE stands for? Edition Java 2 Enterprise Java Edition J2EE stands for? Edition Java 2 Micro Edition Java Edition J2ME stands for? Java; ______ is a portable language that could run on any platform. It was able to do this by virtual machine generating intermediate code for a hypothetical computer called a ________. The __________ is a program that runs on all computers. The ____ creates a software Java Virtual Machine simulation of a CPU and memory and handles all communication between the Java program (JVM) and the underlying operating system and hardware. The Java source code (.java file) is normally compiled to produce the bytecode file (.class file) Java Virtual Machine which is normally interpreted by the ____________. Source Code to “javac” to Byte Code to byte code to Java Virtual Machine to machine code Java “Write once, run anywhere.” Java 2 Software Development Kit Java, Javac, Javadoc, others The J2SDK (JDK) or ________ contains four things which are? Java the loader for Java applications is called? Javac the compiler is called? javadoc the documentation generator is called? Steps in Creating a Java Application: Create Compile 1. _______ the source code. Run 2. _______ the source code. 3. _______ the program. Steps 1: Creating the source code Text Editor Create the source code using any _________..java Save the file with a “._____” extension. (Example: HelloJava.java) Steps 2: Compiling the source code javac Compile the source code to create the byte code using ______ tool from the J2SDK. Open an _______ console, browse for the directory where you saved the source code MS-DOS Type the command _______ HelloJava.java and press ENTER. Verify that the HelloJava.class has been created. Steps 3 : Running the Program java To execute the program, type the command: ____ HelloJava and press ENTER. Integrated An ___________ is a computer software to help computer programmers develop software Development code efficiently. Environment (IDE) ____ Leaders Include NetBeans, Microsoft Visual Studio, and Eclipse. Integrated Development What does IDE stand for? Environment 1. Source code Editor. 2. Compiler and/or interpreter. What does IDE consist of? Give 3. 3. Build- automation tools. 1. Debugger. 2. Version control What are the 3 optional tools of IDE? system. 3. Various tools to simplify the construction of a GUI 1. Object inspector. 2. Class Browser. What are the 3 tools for object oriented design? 3. Class hierarchy diagram. _________ abstracts the configuration necessary to piece together various utilities in one IDE unit, which could ease the learning of a language, and increases developer productivity. Most IDEs today have _____ modeling utilities that simplify the development of UIs, which is GUI critical for commercial software today. Xelfi It all started as a student project called _________. Delphi The Goal was to write a _______- like Java IDE in Java for the first time. network-enabled The original plan was to develop ___________ components, hens the name. but coming out JavaBeans of the spec for enterprise changed the plans. Sun ______ decided it needs a more powerful Java development tool, and the rest is history. NetBeans It is a fast fully-featured Integrated Development Environment (IDE) with support for Java. NetBeans It is a compliant applications for accelerating development across all major OS platforms. It provides an open source, high performance, modular, extensible, multi-platform Java IDE NetBeans for GUI, mobile tools, Web, and Desktop applications. NetBeans It is written in java and therefore runs on every operating system that supports Java VM. The __________ represents a free and open-source development environment, tooling Apache NetBeans IDE platform, and application framework. It comes with a user-friendly interface with powerful features such as source-code Apache NetBeans IDE highlighting, code templates, and project creation wizards, which can simplify your code design. NetBeans Features: Environment: easily configured user interface and a modular architecture extensible with additional plugins. Project System: support for multiple source roots, easy management of libraries, easily ported to other environments, all based on Apache Ant. Web Development: Web Application project type, Supports the J2EE 1.3 and 1.4 standards with web application build support based on Apache Ant. Enterprise Java Beans (EJB) Development: easy to create and deploy and import java beans. Web Services Development: wizards for creating web services and web services clients, providing the basic (java/wsdl) code needed, and easy to use testing tools of existing web services. NONE Java 2 Platform, Micro Edition (J2ME) MIDP development: visual design editor with end-to- end support for enterprise applications. Code Editor: Syntax highlighting for Java, XML, HTML, CSS, JSP and IDL, full support of new JDK 1.5 features, live parsing/error marking, popup javadoc, code completion, and fast class importing. Refactoring: renaming, changing and moving of various objects, field encapsulation and usage finding. Award Winning Debugger: Language independent debugger core, variable modification and watches, various breakpoints and “Fix and Continue” mechanism. GUI Builder: fully WYSIWYG designer with "Test Form" feature, extensible Component Palette pre-installed Swing and AWT components, showing a components tree and properties, automatic code generation and full JavaBeans support. Version control Support: supports command lined vcs, supplying merging and diff tools and containing a built- in CVS client. XML: XML, DTD and CSS Text Editor and XML Productivity Tools Wizards to help user generate codes. NetBeans _______: provides information about the runtime behavior of applications. Allows Profiler developers to monitor the thread state, CPU performance, and memory usage of their applications. makes it easy to track down performance problems and memory leaks NetBeans ______: provides the services common to almost all large desktop applications Platform such as: window, menu, settings management and storage, file access and more. NetBeans _________: used to write, test, and debug applications for the Java Micro Edition platform (J2ME) technology-enabled mobile devices. It integrates support for the Mobile Mobility Pack Information Device Profile (MIDP) 2.0, the Connected, Limited Device Configuration (CLDC) 1.1. On-Phone The mobility pack allows for the unique “_________” debugging mode. NetBeans Matisse: The biggest improvement from the previous version and the feature with the biggest impact is the new GUI- Builder, Matisse. The Goal: to take the best features from OSX and VS designers and allow the same possibilities for Java Programmers. In order to reach that goal there was a need to develop a new layout manager to support NONE all the needed functionalities. Matisse provides a simple and intuitive layout of GUIs without having to understand the complexities of Swing layout managers. As you drag and drop components into a form, the IDE automatically suggests alignment, spacing, and resizing constraints. By simply right clicking a UI Object you can add an event handler with a method waiting to be implemented without knowing too much about the surrounding of this object. (watch example clip in the site) NetBeans Matisse – Advantages: For the first time, there’s an intelligent way to build GUI for Java (unlike eclipse), that can NONE actually compete with the Visual Studio Gui builder. Supports internationalization, and industrial look-and-feel rules, which is very important for large scale application meant to be spread world wide. Builds also GUI web applications, HTML, JSP, etc NetBeans Matisse – Disadvantages: NONE No built-in support for Drag-n-Drop or double-click events. Matisse’s code is protected so customizing is not very easy and not always possible. Not all applications are easily built. For instance, an MDI Project is not that trivial to build