Introduction to Java Programming

Bookmark
Java is a general purpose programming language. It is a general purpose high level, object-oriented language.

Java has grown into a larger platform over a period. Key feature of Java is "write one, run anywhere", platform independent ability. This is a tutorial trail will help you to learn Java and is intended for beginners and intermediate skilled programmers.

Key Characteristics of Java

  • Platform independence
  • Object oriented
  • Automatic memory management
  • Security
  • Multi-threading and high performance.

Java Hello World Example

public class HelloWorld {
public static void main(String args[]) {
	System.out.println("Hello World!");
}
}

Compiled and Interpreted

Java is both compiled and interpreted.Compilation is the first step that translates the Java source code to binary code. This is an intermediate representation of the Java program and will serve as input to the interpretation process. This Java byte code can be used on any platform without making changes to it. This property is called platform independence.  Interpretation converts the byte code into low level machine instructions.

Java Applications

Java applications are of the following different flavor:

  1. Desktop based thick client applications. Java applications that uses AWT and Swing as the user interface.
  2. Web applications, these are thin client applications. Deployed in an application server and presented to user via a web browser.
  3. Enterprise applications, these are distributed applications that follows a Java enterprise specification.
  4. Mobile applications, these are Java micro applications that runs on mobile devices.

Exception Occured:

TypeErrorException
Messageerror_log(app.log): Failed to open stream: Permission denied
File/home/dh_czz6eb/tutorialwalk.com/common/error.php
Line36
Trace#0 (): log_error(2, 'error_log(app.log): Failed to open stream: Permission denied', '/home/dh_czz6eb/tutorialwalk.com/common/error.php', 36)
#1 /home/dh_czz6eb/tutorialwalk.com/common/error.php(36): error_log('26-04-2024 23:36:28 pm (IST),/home/dh_czz6eb/tutorialwalk.com/common/common.php,193,0,ErrorException,Optional parameter $per_page declared before required parameter $href is implicitly treated as a required parameter,/java/introduction-to-java-programming.html,#0 /home/dh_czz6eb/tutorialwalk.com/common/error.php(115): log_error(8192, 'Optional parame...', '/home/dh_czz6eb...', 193)
#1 [internal function]: check_for_fatal()
#2 {main}
', 3, 'app.log')
#2 /home/dh_czz6eb/tutorialwalk.com/common/error.php(8): log_exception(ErrorException)
#3 /home/dh_czz6eb/tutorialwalk.com/common/error.php(115): log_error(8192, 'Optional parameter $per_page declared before required parameter $href is implicitly treated as a required parameter', '/home/dh_czz6eb/tutorialwalk.com/common/common.php', 193)
#4 (): check_for_fatal()
REQUEST_URI/java/introduction-to-java-programming.html