Logo

Navigation
  • Home
  • Services
    • ERP Solutions
    • Implementation Solutions
    • Support and Maintenance Solutions
    • Custom Solutions
    • Upgrade Solutions
    • Training and Mentoring
    • Web Solutions
    • Production Support
    • Architecture Designing
    • Independent Validation and Testing Services
    • Infrastructure Management
  • Expertise
    • Microsoft Development Expertise
    • Mobile Development
    • SQL Server Database and BI
    • SAP BI, SAP Hana, SAP BO
    • Oracle and BI
    • Oracle RAC
  • Technical Training
    • Learn Data Management
      • Business Intelligence
      • Data Mining
      • Data Modeling
      • Data Warehousing
      • Disaster Recovery
    • Learn Concepts
      • Application Development
      • Client Server
      • Cloud Computing Tutorials
      • Cluster Computing
      • CRM Tutorial
      • EDI Tutorials
      • ERP Tutorials
      • NLP
      • OOPS
      • Concepts
      • SOA Tutorial
      • Supply Chain
      • Technology Trends
      • UML
      • Virtualization
      • Web 2.0
    • Learn Java
      • JavaScript Tutorial
      • JSP Tutorials
      • J2EE
    • Learn Microsoft
      • MSAS
      • ASP.NET
      • ASP.NET 2.0
      • C Sharp
      • MS Project Training
      • Silverlight
      • SQL Server 2005
      • VB.NET 2005
    • Learn Networking
      • Networking
      • Wireless
    • Learn Oracle
      • Oracle 10g
      • PL/SQL
      • Oracle 11g Tutorials
      • Oracle 9i
      • Oracle Apps
    • Learn Programming
      • Ajax Tutorial
      • C Language
      • C++ Tutorials
      • CSS Tutorial
      • CSS3 Tutorial
      • JavaScript Tutorial
      • jQuery Tutorial
      • MainFrame
      • PHP Tutorial
      • VBScript Tutorial
      • XML Tutorial
    • Learn Software Testing
      • Software Testing Types
      • SQA
      • Testing
  • Career Training
    • Career Improvement
      • Career Articles
      • Certification Articles
      • Conflict Management
      • Core Skills
      • Decision Making
      • Entrepreneurship
      • Goal Setting
      • Life Skills
      • Performance Development
      • Personal Excellence
      • Personality Development
      • Problem Solving
      • Relationship Management
      • Self Confidence
      • Self Supervision
      • Social Networking
      • Strategic Planning
      • Time Management
    • Education Help
      • Career Tracks
      • Essay Writing
      • Internship Tips
      • Online Education
      • Scholarships
      • Student Loans
    • Managerial Skills
      • Business Communication
      • Business Networking
      • Facilitator Skills
      • Managing Change
      • Marketing Management
      • Meeting Management
      • Process Management
      • Project Management
      • Project Management Life Cycle
      • Project Management Process
      • Project Risk Management
      • Relationship Management
      • Task Management
      • Team Building
      • Virtual Team Management
    • Essential Life Skills
      • Anger Management
      • Anxiety Management
      • Attitude Development
      • Coaching and Mentoring
      • Emotional Intelligence
      • Stress Management
      • Positive Thinking
    • Communication Skills
      • Conversation Skills
      • Cross Culture Competence
      • English Vocabulary
      • Listening Skills
      • Public Speaking Skills
      • Questioning Skills
    • Soft Skills
      • Assertive Skills
      • Influence Skills
      • Leadership Skills
      • Memory Skills
      • People Skills
      • Presentation Skills
    • Finding a Job
      • Etiquette Tips
      • Group Discussions
      • HR Interviews
      • Interview Notes
      • Job Search Tips
      • Resume Tips
      • Sample Resumes
 

Important Features of Java – Multithreading, AWT

By Exforsys | on July 26, 2006 |
J2EE

Important Features of Java – Multithreading, AWT

In this tutorial you will learn about Important Features of Java – Multithreading, AWT and Event Handling, Networking, Socket and Database Connection

There are many features of Java. Some of them namely are explained below.

Multithreading

A fundamental concept of computer programming is the idea of handling more than one task at a time. Within a program these separately running pieces are called threads and the general concept is called multithreading.

The Java Virtual Machine allows an application to have multiple threads of execution running concurrently. Each thread has a priority. Threads with higher priority are executed in preference to threads with lower priority. When a Java Virtual Machine starts up there is usually a single non-daemon thread. The Java Virtual Machine continues to execute threads until either of the following occurs.

The exit method of class Runtime has been called and the security manager has permitted the exit operation to take place.

All threads that are not daemon threads have died either by returning from the call to the run method or by performing the stop method.

There are two ways to create a new thread of execution. One is to declare a class to be subclass of Thread. This subclass should override the run method of class Thread. An instance of the subclass can then be allocated and started.

AWT and Event Handling

The original design goal of the graphical user interface called as GUI library in Java was to allow the programmer to build a GUI that looks good on all platforms. The Java Abstract Window Toolkit called as AWT produces a GUI that looks equally good on all systems. Thus much of the situation has been improved with the Java Abstract Window Toolkit AWT by using a very good object oriented approach also with the use of Java Beans which is a component programming model that is very useful for the creation of easy and effective visual programming environments. The concept of swings is also a powerful method which is a rich set of easy to sue Java Beans that can be easily dragged and dropped to create GUI that user can feel satisfied. Swing has the main attribute of pluggable look and feel by which it means that depending on the user’s platform and operating systems the GUI can dynamically be changed as pet the needs of the user in an effective way. Event driven programming is the concept of attaching or associating events to code like in the actions of mouse click or key press or selection of menu and so on. Thus the code attached to these events gets fired when the action or event occurs. This is very important concept supported by Java in an efficient way which takes care of interactive programming methodology thus making it a powerful programming tool.

Networking

This is a very important feature of Java and in Java it is possible to achieve networking without much effort because of the powerful features possessed by it. In other words the concept of networking has become so easy in Java because the underlying details of networking is abstracted and taken away and is taken care of within the JVM and local machine installation of Java.

Socket

In Java one creates a socket to make a connection to the other machine and thereby gets an InputStream and OutputStream from the socket with the appropriate converters namely Reader and Writer which helps to treat the connection as an IO stream object. Generally there are two stream-based socket classes namely a ServerScoket that a server uses to listen for incoming connections and a Socket that a client uses in order to initiate a connection. Once a client makes a socket connection the ServerSocket returns using appropriate method namely accept() method a corresponding server side socket through which direct communications takes place. From this point one gets a true Socket to Socket connection and one can treat both ends the same way as they are same.

Database Connection

The greatest feature of Java is its ability to build platform-independent client/server database applications. In Java this is possible with Java Database Connectivity also called as JDBC in short. Java Database Connectivity is designed to be platform independent and so one need not worry about the database one use while they are programming.

This is achieved by JDBC by the use of driver manager that dynamically maintains all the driver objects that the database queries need. Like many of the API’s in Java, Java Database Connectivity is also designed for simplicity.

There are numerous features of Java and of these above are some of the features of Java which makes Java powerful and popular among programming language.

« « How To Visualize Data Mining Results
What is Data Mining » »

Author Description

Avatar

Editorial Team at Exforsys is a team of IT Consulting and Training team led by Chandra Vennapoosa.

Free Training

RSSSubscribe 391 Followers
  • Popular
  • Recent
  • Java Overview

    July 17, 2006 - 0 Comment
  • Java for Stand-Alone Applications

    November 26, 2005 - 0 Comment
  • How Code Reviews and PMD Can Crush Bugs In Your Code

    July 3, 2006 - 0 Comment
  • Java Virtual Machine

    July 13, 2006 - 0 Comment
  • Keep it Simple And Secure with Java

    December 2, 2005 - 0 Comment
  • How To Create a Java Server Application

    July 3, 2006 - 0 Comment
  • What You Can Do To Deal With Java’s Memory Retention Problems

    July 22, 2006 - 0 Comment
  • New Features In Java 5.0 – From Managers Point of View

    November 26, 2005 - 0 Comment
  • How To Create High Quality Tables With JavaScript

    July 5, 2006 - 0 Comment
  • What You Should Know About Java XML

    July 25, 2006 - 0 Comment
  • Why It is Important To Focus On Java Exceptions For Your Programs

    July 27, 2006 - 0 Comment
  • What You Should Know About Java XML

    July 25, 2006 - 0 Comment
  • What You Can Do To Deal With Java’s Memory Retention Problems

    July 22, 2006 - 0 Comment
  • Java Overview

    July 17, 2006 - 0 Comment
  • How To Use Java DB as Your Client Mobile Database

    July 14, 2006 - 0 Comment
  • How To Run J2ME Programs on Palm Devices

    July 14, 2006 - 0 Comment
  • Java Virtual Machine

    July 13, 2006 - 0 Comment
  • Quickly Develop Java Programs With Tapestry

    July 12, 2006 - 0 Comment
  • A Java TOC2 Class Which Can Contact Aim

    July 12, 2006 - 0 Comment
  • How To Perform Class Loading With Java

    July 8, 2006 - 0 Comment

Exforsys e-Newsletter

ebook
 

Related Articles

  • Why It is Important To Focus On Java Exceptions For Your Programs
  • What You Should Know About Java XML
  • What You Can Do To Deal With Java’s Memory Retention Problems
  • Java Overview
  • How To Use Java DB as Your Client Mobile Database

Latest Articles

  • Project Management Techniques
  • Product Development Best Practices
  • Importance of Quality Data Management
  • How to Maximize Quality Assurance
  • Utilizing Effective Quality Assurance Strategies
  • Sitemap
  • Privacy Policy
  • DMCA
  • Trademark Information
  • Contact Us
© 2023. All Rights Reserved.IT Training and Consulting
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptReject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT