Object Oriented Programming
Lab Design and Purpose
The purpose of the Object Oriented Programming lab is to teach to the student the concepts of object oriented paradigm, assimilation of a new programming language, Java, as well as familiarization with specific programming techniques.
Tutorials and Documentation
- The Object Oriented Paradigm; Classes and Objects. Notions About the Java Language. Writing and Executing a Java Program. Java Syntax; A Program's Lexical Structure. Coding Conventions.
- Advanced Notions About Object Oriented Programming. Java Application Programming Interface (API)
- Exception Handling. Input/Output Streams.
- Serialization. Network Sockets.
- Concurrent Programming - Threads.
- Graphical User Interface (GUI) - Java Swing.
Lab Tasks
Installation Tutorial for Java Developer's Kit
The installation kit required for compiling and executing a Java program can be downloaded from the Oracle website. Select Java Platform (JDK), in the next page select Accept License Agreement and then your operating system.
Windows Installation
For Windows, the file downloaded during the previous step should have an .exe extension. Run this executable file as you would do any other (with Administrator rights), select the default options and wait for the installation to finish. You can safely dismiss the installation of any browser plugins like "Ask Toolbar" or similar ad-ware.
Next, look for the directory in which the JDK has been installed and enter the bin sub-directory. Right-click on the current path and select Copy or Copy address as text. This should look similar to C:\Program Files\Java\jdk1.7.0_05\bin. Next, from Control Panel, select View advanced system settings, and in the window that opens, click Environment variables.... In System variables, look for Path, select it, then click Edit.... In the field Variable value, move the cursor to the end on the line, add a semicolon (;), then paste the path copied in the previous step. Click OK until all windows close.
To verify the installation, open a console (Start, type "cmd" then enter, or Start -> Run -> "cmd" <enter> for Windows XP) and type javac -version. If the reply is similar to javac 1.7.0_05, then the installation was successful, but if is instead 'javac' is not recognized as an internal or external command, operable program or batch file., then start over the previous steps and try again.
Linux Installation
For Ubuntu based Linux distributions, open a terminal and type the following commands:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Netbeans IDE Installation Tutorial
For all operating systems, follow the instruction on official website. Choose the Java SE installer for downloading.