An Overview of Java      Java is a programming language      Java is Object Oriented Programming

This page discusses - An Overview of Java      Java is a programming language      Java is Object Oriented Programming

An Overview of Java      Java is a programming language      Java is Object Oriented Programming

Master java in a week

     

An Overview of Java

  1. Starting Java  

  1. Java as a programming language
    Java is an Object oriented application programming language developed by Sun Microsystems. Java is a very powerful general-purpose programming language.
     

  2. Java as an Object Oriented Language
    In this section, we will discuss the OOPs concepts along with  fundamentals  used to develop the java applications and programs.
      

  3. Applications and Applets
    Now a days, Java is widely used for applications and applets. The code for the application in object format resides on the user's machine and is executed by a run-time interpreter.
      

  4. Peculiarities of Java
    The concept of Write-once-run-anywhere (known as the Platform independent) is one of the important key feature of java language that makes java as the most powerful language.
      

   2.  Java Tools

  1. Compilers
    To commence with Java programming, we must know the significance of Java Compiler. When we write any program in a text editor like Notepad, we use Java compiler to compile it.

  2. Interpreter
    We can run Java on most platforms provided a platform must has a Java interpreter. That is why Java applications are platform independent. Java interpreter translates the Java bytecode into the code that can be understood by the Operating System.
     

  3. Debugger
    Java debugger helps in finding and the fixing of bugs in Java language programs. The Java debugger is denoted as jdb. It works like a command-line debugger for Java classes. 
     

  4. Header file generator
    Firstly, The native methods are in pure C code, not C++. The function prototypes are in an object-oriented form of C which are being provided by javah , but they are still not object methods.
     

  5. JavaDoc
    Sun Microsystems has provided a computer software tool known as Javadoc. This tool is used to generate API documentation into HTML format from Java source code. It is interesting to know that Javadoc is the industry standard for documenting Java classes.

     

  6. Applet Viewer 
    Applet viewer is a command line program to run Java applets. It is included in the SDK. It helps you to test an applet before you run it in a browser. Before going any further, lets see what an applet is?

   3. Java Empowered Browsers
   
Java language is the most powerful language and is widely used in the web application. So the current versions of most of the
    web browser are made java enabled. Mostly used java enabled web browsers are:

  1. Internet Explorer 

  2. Netscape

  3. HotJava

  4. Safari

  5. Firefox 1.0.4

  6. Mozilla 1.6

   4.  Installing Java ...
  Before getting started developing an application the developer must ensure that he/she is going to develop an application by
  using  the best tools. The combination of two features Platform Independent and Object Oriented makes the java powerful to
  build the flexible application.

  • Let's start with the Java Development Kit

  • JDK Installation

  • JDK Installation on Sun Solaris

  • JDK Installation on Windows 95 and Windows NT

  • JDK installation on Apple Macintosh system 7.5

  • Testing the installation

  • Exploring the java Developer's kit

  • Distributing the Java Virtual Machine

  • Other Development Environment

  • Summary

  5.   To Commence with Java ... ( Learn Java in a day)

  1. Comments
    To comprehend any programming language, there are several kind of comments which are used. These comments are advantageous in the sense that they make the programmer feel convenient to grasp the logic of the program.
     

  2. Java Keywords
    There are few keywords in Java programming language. Remember, we cannot use these keywords as identifiers in the program. The keywords const and goto are reserved though, they are not being currently used.
      

  3. Data Types
    Java programming language is a language in which all the variables must be declared first and then to be used. That means to specify the name and the type of the variable. This specifies that Java is a strongly-typed programming language. Like
      

  4. Literals
    By literal we mean any number, text, or other information that represents a value. This means what you type is what you get. We will use literals in addition to variables in Java statement. While writing a source code as a character sequence, we can specify any value as a literal such as an integer.
      

  5. Operators
    Operators are symbols that performs some operations on one or more then one operands. Once we declare and initialize variables, we can use operators to perform certain tasks like addition, subtraction etc.
      

  6. Classes 
    There are some kind of errors that might occur during the execution of the program. An exception is an event that occurs and  interrupts the normal flow of instructions. That is exceptions are objects that store the information about the occurrence of errors.

  6.   Java Syntax ...

  1. Hello world (First java program)
    Java is a high level programming language and it is used to develop the robust application. Java application program is platform independent and can be run on any operating System
      

  2. Under Standing the HelloWorld Program
    Class is the building block in Java, each and every methods & variable exists within the class or object. (instance of program is called object ). The public word specifies the accessibility of the class.
     

  3. Data types, Variables
    The type of value that a variable can hold is called data type. When we declare a variable we need to specify the  type of value it will hold along with the name of the variable
    .

    • Primitive Data Types

    •  Literals

    •  Variables

    •  Declaring and Assigning values to Variables 

  7.  Arrays
   
In this section you will be introduced to the concept of Arrays in Java Programming language. You will learn how the Array
    class in java helps the programmer to organize the same type of data into easily manageable format.

  1.  Introduction to Arrays

  2.  Structure of Arrays

  3.  Array Declaration

  4.  Array Initialization

  5. Array Usage

  6.  Multi-dimensional arrays

  7. Two-dimensional arrays

  8. Copying Arrays

   8. Operators
    Operators are symbols that performs some operations on one or more then one operands. Once we declare and initialize 
   variables, we can use operators to perform certain tasks like addition, subtraction etc.

  1. Simple Assignment Operator
  2. Arithmetic Operators
  3. Unary Operators 
  4. Equality and Relational Operators
  5. Conditional Operators
  6. Type Comparison Operator
  7. Bitwise and Bit Shift Operators

  9. Control Statements ...

  1. if
    To start with controlling statements in Java, lets have a recap over the control statements in C++. You must be familiar with the if-then statements in C++. The if-then statement is the most simpler form of control flow statement. 
      

  2. for
    In the world of Java programming, the for loop has made the life much more easier. It is used to execute a block of code continuously to accomplish a particular condition. For statement consists of tree parts i.e. initialization, condition, and iteration.
     

  3. switch
    Sometimes it becomes cumbersome to write lengthy programs using if and if-else statements. To avoid this we can use Switch statements in Java. The switch statement is used to select multiple alternative execution paths.
      

  4. while and do-while  
    Lets try to find out what a while statement does. In a simpler language, the while statement continually executes a block of statements while a particular condition is true. 
     

  5. Break and Continue Statements
    Sometimes we use Jumping Statements in Java. Using for, while and do-while loops is not always the right idea to use because they are cumbersome to read. Using jumping statements like break and continue it is easier to jump out of loops to control other areas of program flow.
     

  10. Class, Object and Methods

  1. Class

  2. Object

  3. Constructor

  4. Constructor Overloading

  11.  Inheritance
     To know the concept of inheritance clearly you must have the idea of class and its features like methods, data members,
    access controls, constructors, keywords this, super etc.

  1. Simple Inheritance

  2. Multilevel Inheritance

  3.  Java does not support multiple Inheritance

  4.  super keyword

  12. Abstract Methods and Classes
    While going through the java language programming you have learned so many times the word abstract. In java programming
   language the word abstract is used with methods and classes.

  1. Abstract Method

  2. Abstract Class

  13.Packages
   A Java package is a mechanism for organizing a group of related files in the same directory and having each class file in a
   package directive with that directory name at the top of the file.

  1. Introduction to Java Package

  2. Features of a Java package

  3. Using packages

  4. Access protection in packages

  5. Naming convention of packages

  6. Core Java Packages

  15.  Interface in Java
 
In this section we will learn about Interface and Marker Interfaces in Java. This tutorial will clarify you questions "What is marker
  Interface?
" and "Why use Marker Interface?" and "difference between abstract class and the interface".

  16.  Exception Handling
 
Exception, that means exceptional errors. Actually exceptions are used for handling errors in programs that occurs during the
  program execution. During the program execution if any error occurs and you want to print your own message.....

   17.   Threading
  
Threading concept is very important in Java Programming language. A thread is a sequential path of code execution within a program
   and each thread has its own local variables, program counter and lifetime.

  1. Introduction

  2. Parallel Processing

  3. Multitasking & Multithreading

  4. Advantages of multithreading over multitasking

  5. Main Thread

  6. Thread Creation

  7. Thread Constructors

  8. Thread Group

  9. Life Cycle of Threads

  10. Thread Priorities

  11. Lock

  12. Synchronized Methods

  13. Synchronized Blocks (Statements)

  14. Deadlock

  15. Daemon Threads

   18.   Input and Output
  
The Java I/O means Java Input/Output and is a part of java.io package. This package has a InputStream and OutputStream. Java
  
InputStream is  for reading the stream, byte stream and array of byte stream.

  1. Introduction

  2. Read Text from Standard IO

  3. Filter Files in Java

  4. Java read file line by line

  5. Create File in Java

  6. Copying one file to another

  7. Serializing an Object in Java

  8. De-serializing an Object in java
     

  19.    Applets
 
Applet is java program that can be embedded into HTML pages. Java applets runs on the java enables web browsers such as mozila
  and internet explorer. Applet is designed to run remotely on the client browser, so there are some restrictions on it.

  1. Introduction

  2. Advantages of Applet

  3. Disadvantages of Java Applet

  4. Life Cycle of Applet

  5. Creating First Applet Example

  6. Passing Parameter in Java Applet