Java Programming

Topics: Java, Java applet, Sun Microsystems Pages: 13 (3804 words) Published: September 17, 2013
Computing &Math. Sc.-University of Greenwich
FMI- University of Shumen -BSc Informatics

JAVA Programming Lecture 1March 2007

Lecture notes by Dilwyn Edwards, presented by Stanev

How do you learn?

Programming is very obviously a task-oriented activity and the only way to learn is by doing it. Get as much practice as you can by trying all the exercises and don't be afraid to try out your own ideas by modifying some of the examples. You can learn a certain amount from online tutorials and by reading through examples and trying to make sense of them. So please do this. The main thing is to be patient! - Java is very big and very powerful and so inevitably takes time to learn. Each week we’ll go through a batch of notes in class, do some tutorial exercises and get some work done in the lab. Please note that this course will not make you into a java programmer but it will give you an introduction and feel for what it means to be a java programmer. Don't be discouraged by the complexities, it will all gradually become clear! What do you need ?

Not much! - just
• The essential software tools – JDK or SDK and a plain text editor like Notepad • Determination to learn
• Willingness to keep trying when things don't work at first

Optional Resources

Books – you don’t have to buy one but they are always useful and there’s a lot to choose from.

Web sites web site

The best place to find out more about Java web development is of course the web. Try typing Java into search engines and visit the following sites.

Software Tools for Java

Here are some Integrated Development Environments and other tools to make it easier to develop Java programs (but we won't make specific use of them in this course):

IBM VisualAge for
Inprise Borland
Microsoft Visual
Symantec Visual Café

What is Java?

It is an OOP (Object Oriented Programming) language developed by SUN (1990). Now on Version 2 it is widely used for the development of internet (and other distributed) software. Its features include architectural neutrality, security, robustness, multi-threading and it offers extensive APIs including GUIs, utilities, database access, networking etc.

What can you do with it?
You can

1. Download ready-made applications ("APPLETS") from other sites and embed them into your own HTML pages. (e.g. try and download some of the .class files) 2. Write your own applets and embed them in your web pages.

3. Produce stand-alone applications unrelated to the internet. 4. Produce things called JavaBeans which are roughly analogous to Visual Basic controls or Class modules for carrying out specific tasks.

We will consider only the first two of the above.

Applets can considerably enhance your web pages and provide extra interaction, sound, animation, graphics etc. Examples are games and programs to provide insurance quotes. They are best kept fairly small otherwise the download time can be long and put users off. with Java you can write an internet program to perform just about any task and because (once downloaded) the Java program runs on the client's own PC , it is as fast as any application on the local PC's hard disk.

How does it work?

Java was created by Sun Microsystems with the aim of producing platform-independence. This was achieved by making compiled Java programs (architecturally neutral bytecode) run on a JVM (Java Virtual machine) so any PC with the JVM installed can run Java programs. The JVM is built into Netscape Navigator and Internet Explorer hence the importance of Java for Internet. We are now on Java2. Java source code (which can be written in any text editor) is passed to the Java Compiler which checks the code for errors and...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Java Ring Essay
  • Comparison of Java, Javascript, Java Applets and Java Beans Essay
  • Essay about Concept of Java Programming
  • History of Java Programming Essay
  • Java Javascript Essay
  • Java vs .Net Essay
  • Java Programming Language Sl-275 Essay
  • JAVA Essay

Become a StudyMode Member

Sign Up - It's Free