Introduction to Java

 

Java Tutorial for beginners tutorial is basically for beginners which have very less or no experience in java programming. This Java Tutorial for beginners tutorial will show you what is java programming from the very basic.

How to use this Tutorial ?

  • Go through the presentation given below and read every concept given in the presentation.
  • Practice each given examples  in the presentation.
  • Try to answer the questions given at the end of each  presentation.

Contents of Java Tutorial for beginners – Introduction to Java

  • History of Java
  • What is JDK
  • What is bytecode?
  • Object oriented language
  • Object oriented language Advantages
  • Java Programs
  • Developing a Java Program
  • Features of Java
  • Sample program
  • Question and answers

Download Java Tutorial for beginners

Introduction to Java – Part 1

 [gview file=”https://sites.google.com/site/projectsgeek2/studymaterialjava/Introduction%20to%20Java-Basic%20Java%20tutorial.ppt” profile=”3″ save=”1″]

Question for Introduction to Java – Part 1

What are the advantages of Java ?

  • Syntax based on C++
  • Object-oriented
  • Support for Internet applications
  • Extensive library of prewritten classes
  • Portability among platforms
  • Built-in networking
  • Security as JRE is inaccessible to other parts of computer.

 

What is the difference between an interpreter and a compiler ?

Java Compiler generates byte code instead of machine code and interpreter executes java program

Define Class and Object ?

Class

  • tool for encapsulating data and operations (methods) into one package
  • defines a template or model for creating and manipulating objects

Objects

  • data created using the class and its methods
  • an object is an instance of the class
  • creating an object is instantiation

 What are different Java programs ?

Applets

Small programs designed to add interactivity to Web sites

Downloaded with the Web page and launched by the Internet browser

Servlets

Run by Web server on the server

Typically generate Web content

Applications

Programs that run standalone on a client