Sie sind auf Seite 1von 20

Introduction to Java

Lab 1

General Instructions

General Instructions
Should
Lab

you have any question, feel free to interrupt to ask me. DONT ask/talk to your colleagues. Sheets would be available BEFORE the lecture. You should read and print it.
Slides

would be available AFTER the lecture. will be always at the beginning of the

Quizzes

lecture.

Attendance

will always be taken BEFORE the lecture starts and late comer will be marked as absent.
Mobile

should be silent.

General Instructions

h-aldosari@hotmail.com @Programming1_CF Taibah University_Hanadi Aldosari http://www.taibahu.edu.sa/staff/?user=hdosari&p=contact

General Instructions

Labs Topics
Week 1 2 3 4 5 Topics List Lab Sheet 1: install Java Software environment Net Beans Lab Sheet 2: Fundamental of JAVA Programming. Lab Sheet 3: Selection Structures in JAVA Program Lab Sheet 4: Loop Structures in JAVA Program. Lab Sheet 5: Methods

6-7
8 9 10 11 12 13

Lab Sheet 6Aand 6B: Develop Single-Dimensional Arrays program


Lab Sheet 7: Develop Multidimensional Arrays program Lab Sheet 8: Introduction to OOP and Text I/O Lab Sheet 9: Writing Classes (1) Lab Sheet 10: Writing Classes (2) Lab Sheet 11: Inheritance Lab Sheet 12 Exception Handling and polymorphism

What is the Java ?

Java is a high level programming language, first released by Sun Microsystems

Java enables users to develop and deploy applications on the Internet for servers, desktop computers, and small hand-held devices.

Characteristics of Java

Types of JAVA Programs

These are the applications which are web-based in

nature and requires a web


browser for execution.
An application is a program that runs on the computer under the operating system of your computer. The

It requires a server to run these applications. E.g. Database application

application can either be GUI based or console

based.

Java development kit (JDK) Editions

J2SE can be used to develop client-side standalone applications or applets

J2ME can be used to develop applications for mobile devices such as cell phones J2EE can be used to develop server-side applications such as Java servlets.

NetBeans

NetBeans
NetBeans

refers to both a platform framework for Java desktop applications, and an integrated development environment (IDE) for developing with Java.

NetBeans
*Requirements
Installing JDK 6 or up Installing NetBeans for Java SE

NetBeans
*Program Interface

NetBeans
*Start with create new project

NetBeans
*Select Java -> Java application

NetBeans
*name and location

NetBeans
*Starting to write the code

Thank you

Das könnte Ihnen auch gefallen