Log in User page Discussion History Go to the site toolbox

User:Chotchki/S2006/Java

From BluWiki

hawaii state bird domain hotel montebello paris france arctic cat 4 wheeler part 95 barries rock gradeababes apollo 13 lesson plan penis largest iraqi radio tics null hypothesis m matrix ringtones http respiratory system works lynard skynard music video codes free scroll saw patterns anthrax public enemy video wire dog crates paralegal seminar 2005 once were warriors movie

http://dronelboal.com/cnalichid.html[eloloolomo] [[1][eloloolomo]]

"eloloolomo":http://varcadronc.com/orrodomvar.html

Wednesday 11 January 2006

TA is Barb Warner, she will be running the final part of the course. Her office is BSN2404 Tues 12-2.

The second half of the class will be doing the homework in the lab. CIS 1036

Quizzes will be announced the week before.

Object Oriented Design Overview

  • Object-Oriented Paradigm
  • Two Levels of Abstraction
  • Basis of UML

Business Problem (concrete)

  • Has characteristics
    • Structural
    • Behaviorial

Take the business problem and objectify it via abstraction

Abstraction via an Object (abstract representation)

  • Has characteristics
    • attributes
    • operations

Java is a strongly typed language because you must declare data types.

History of Java

  • Started as a Sun project called the 'Green Project'
  • They created the JVM
  • bytecode is 'binary, compiled code' or the assebly of the JVM
  • James Gosling is the 'Father of Java'
  • Was named Oak and renamed to Java

Quote advantages of java

  • Simple compared to C++
  • Object-Oriented
  • Distributed
  • Robust
  • Secure
  • Architecture Neutral
  • Portable
  • Multithreading

Java

  • Editions
    • J2SE
    • J2EE
    • J2ME
  • JDK versions
    • 1.5
    • 1.4
    • 1.3.x
    • 1.2.x
    • 1.1.x
  • IDE products

Wednesday 18 January 2006

She said everyone did well on the assignment.

Structured vs. OO

Structured Programming

report-generation module

  • headers prototype
  • include files
  • main.c
    • all calls flow through the main method
  • produces the output

Object Oriented Programming

report class

  • title
  • numberpages
  • printreportweekly method

driver class

  • main method

If we want to change the behavior of the program, the report class can be subclassed and changed easily

Fundamental Concepts of OOP

  • Objects
    • it is an instantiated class

Classes

It is a blueprint of a stucture with bound functions

Relationships:

  • Is-A - subclassing
  • Has-A - uses the class
  • Uses-A -
  • Encapsulation
    • interface (public)
    • implementation (private)
  • Inheritance
    • extends
  • Polymorphism
    • inheritance with a common protocal of calling

Wednesday 25 January 2006

we went over her solution to assignment 2

methods declaration/invocation

make sure we send to ism4141@coba.usf.edu

Java fundamentals

wrapper classes ie:

  • Integer
  • Float
  • Double
  • Boolean
  • Short
  • Character
  • Long
  • Byte

They all for easier casting and conversion

structural and behavioral: translates to methods and attributes

She went over the primitive data type class file

primitives are autoinitalized:

  • int - 0
  • float - 0.0f
  • double - 0.0
  • boolean - false
  • short - 0
  • long - 0
  • byte - 0
  • char?

went over static varible usage and memory stuff

we also talked about instance, global and local varibles

pre and post incrementing of varibles

casting of varibles including the chain of complexity

  • note going from double to byte will require an explicit cast
  • ie. (byte)int + (byte)int

java strings are immutable

  • StringBuffer class
  • string .equals() method
    • '==' compares memory locations


Looping

  • selection
    • if-then-else
    • switch
  • iteration
    • for
    • while
    • do-while
  • transfer
    • break
    • continue
    • return

Arrays

ar

Wednesday 08 February 2006

QUIZ NEXT WEEK!!!!

went over the homework

classes have attributes and methods

parent class = superclass = baseclass

subclass is an inherited class from a parent class

  • foo extends bar <---- how to inherit

override - same method args overload - different method args

polymorphism

true

  • inherited method overridden

ad-hoc

  • overloaded methods in the same class

interfaces

interfaces are a blueprint for a class that specifies what must be implemented by classes using the interface

use keyword interface to write an interface

you then use a method signature (an implementation blockless method) to define the interface

foo implements bar <---- says a class will be using a interface

all methods and attributes are considered to be static

abstract class

an interface with possible fully implemented methods

used to create stubs that are enforced

cannot be instanciated but only inherited

all methods and attributes are considered to be static

no multiple inheritance but you can implement multiple interfaces

inner classes/anonymous classes

look into it more.... seems like a juicy way to abuse stuff

Wednesday 22 February 2006

Character Streams - Unicode characters

  • Reader
  • Writer

Byte Streams = binary format

  • Input Stream
  • Output Stream

Buffers

Chaining - wrapping streams for more functionality

Exam

Short answer and coding

Pros and Cons of Java

OOP Concepts

Class relationships

access modifiers

encapsulation

  • interfaces
  • implementation

inheritance

varibles esp differnt types

coding

  • methods
  • loops
  • implementation block

Wednesday 22 March 2006

Threads - independant flow of execution in a program that performs a task that do not have an exclusive chunk of memory

threads run in different ways depending on the OS using a thread scheduler

  • Unix -
  • Windows -

WebBasedJavaThreadState.png

Creating Threads

  1. Extend the Thread
  • Inherit Thread and implement a run() method
  • call start() to start the thread
  1. Implement Runnable

Wednesday 29 March 2006

Event

  • Source
  • Listener
  • Handler

AWT

  • import java.awt.*;
  • import java.awt.event.*;


Swing

  • import javax.swing.*;
  • import javax.swing.event.*;
  • JApplet
  • JDialog
  • JFrame
  • JWindow

Wednesday 05 April 2006

Collections

  • an object that groups multiple objects into a single unit
  • Legacy
    • Vector
    • Hashtable
  • Current Object Trees
    • Collection
      • Set (hashset, Tree set)
        • Sorted Set
      • List (arraylist)
    • Map (hashmap)
      • SortedMap

Site Toolbox:

Personal tools
GNU Free Documentation License 1.2
This page was last modified on 5 August 2009, at 13:06.
Disclaimers - About BluWiki