DDOOCP Topic 0: Java SE 7

The History of Java Technology

Since 1995, Java has changed our world . . . and our expectations..

Java_logo_and_wordmark.svg

Today, with technology such a part of our daily lives, we take it for granted that we can be connected and access applications and content anywhere, anytime. Because of Java, we expect digital devices to be smarter, more functional, and way more entertaining.

In the early 90s, extending the power of network computing to the activities of everyday life was a radical vision. In 1991, a small group of Sun engineers called the “Green Team” believed that the next wave in computing was the union of digital consumer devices and computers. Led by James Gosling, the team worked around the clock and created the programming language that would revolutionize our world – Java.

The Green Team demonstrated their new language with an interactive, handheld home-entertainment controller that was originally targeted at the digital cable television industry. Unfortunately, the concept was much too advanced for the them at the time. But it was just right for the Internet, which was just starting to take off. In 1995, the team announced that the Netscape Navigator Internet browser would incorporate Java technology.

Today, Java not only permeates the Internet, but also is the invisible force behind many of the applications and devices that power our day-to-day lives. From mobile phones to handheld devices, games and navigation systems to e-business solutions, Java is everywhere!

Related Slide


DDOOCP Topic 04: Graphics

The Java 2D API is powerful and complex. However, the vast majority of uses for the Java 2D API utilize a small subset of its capabilities encapsulated in the java.awt.Graphics class. This lesson covers the most common needs of applications developers. Less common needs are described later in the Advanced topics in the Java 2D API.

Most methods of the Graphics class can be divided into two basic groups:

  • Draw and fill methods, enabling you to render basic shapes, text, and images
  • Attributes setting methods, which affect how that drawing and filling appears

Methods such as setFont and setColor define how draw and fill methods render.

graphicMethods

Practice Questions

ddoocp_topic_4_18

ddoocp_topic_4_19

ddoocp_topic_4_10

Related Slide


SDT Topic 10: Objects and Classes

Classes

  • Class is similar to data type like int, float, etc.
  • Classes are more powerful than arrays because they have both variables and functions.
  • They provide a portable package of data and algorithms .
  • They also let us give the compartments different names.
  • And they can be of any combination of types, including arrays.
  • The class can then be used like a whole number or a string when declaring variables.

Objects

  • Objects are a specific instantiation of a class.
  • Instantiation is a fancy way of saying “creating an object from a class”.
  • A class is the data type or the blue print of an object.
  • The object would then be the variable created from the class.
  • When we want to put a new object in our variable, we use the special keyword new.