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.
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.
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.
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.
Java Tools
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.
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.
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.
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.
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.
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?
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:
Internet Explorer
Netscape
HotJava
Safari
Firefox 1.0.4
Mozilla 1.6
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
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.
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.
Java Data Types
Data type defines a set of permitted values on which the legal operations can be performed. In java, all the variables needs to be declared first i.e. before using a particular variable, it must be declared in the program for the memory allocation process.
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.
Operators and Expressions
Operators are such symbols that perform some operations on one or more operands. Operators are used to manipulate primitive data types. Once we declare and initialize the variables, we can use operators to perform certain tasks like assigning a value, adding the numbers etc.
Simple Assignment Operators
Arithmetic Operators
Unary Operators
Equality and Relational Operators
Conditional (Logical) Operators
Bitwise and Bit Shift Operators
Type Operators
Operator Precedence
In Java, Operator Precedence is an evaluation order in which the operators within an expression are evaluated on the priority bases. Operators with a higher precedence are applied before operators with a lower precedence.
Java is an Object oriented application programming language developed by Sun Microsystems. Java is a very powerful general-purpose programming language.
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.
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.
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.
Java Tools
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.
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.
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.
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.
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.
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?
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:
Internet Explorer
Netscape
HotJava
Safari
Firefox 1.0.4
Mozilla 1.6
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
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.
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.
Java Data Types
Data type defines a set of permitted values on which the legal operations can be performed. In java, all the variables needs to be declared first i.e. before using a particular variable, it must be declared in the program for the memory allocation process.
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.
Operators and Expressions
Operators are such symbols that perform some operations on one or more operands. Operators are used to manipulate primitive data types. Once we declare and initialize the variables, we can use operators to perform certain tasks like assigning a value, adding the numbers etc.
Simple Assignment Operators
Arithmetic Operators
Unary Operators
Equality and Relational Operators
Conditional (Logical) Operators
Bitwise and Bit Shift Operators
Type Operators
Operator Precedence
In Java, Operator Precedence is an evaluation order in which the operators within an expression are evaluated on the priority bases. Operators with a higher precedence are applied before operators with a lower precedence.
No comments:
Post a Comment