Jython for Java Programmers

Overview

This book will help Java developers to increase application development and deployment, thus optimizing their overall efficiency.

A brief introduction is provided that shows the differences between Java and Jython, important to include so that the reader will have a better understanding of why their union is beneficial.

The remainder of the book teaches, through examples, how to use Jython. Intended for an experienced Java developer, this book ...

See more details below
Other sellers (Paperback)
  • All (12) from $2.86   
  • New (6) from $21.99   
  • Used (6) from $2.86   
Sending request ...

Overview

This book will help Java developers to increase application development and deployment, thus optimizing their overall efficiency.

A brief introduction is provided that shows the differences between Java and Jython, important to include so that the reader will have a better understanding of why their union is beneficial.

The remainder of the book teaches, through examples, how to use Jython. Intended for an experienced Java developer, this book assumes you understand the fundamentals to programming (i.e. loop statements, if.then, etc.). So, page space is focused on utilizing Jython with Java by covering the following: extending Python with java classes, modules, compiling, interpreters, design integration, etc.

www.newriders.com contains all code and applications developed in the book.

Read More Show Less

Product Details

  • ISBN-13: 9780735711112
  • Publisher: Sams
  • Publication date: 12/28/2001
  • Series: Landmark Series
  • Pages: 466
  • Product dimensions: 6.92 (w) x 8.81 (h) x 1.10 (d)

Meet the Author

Robert W. Bill currently dedicates his time to software design and development in Python, Jython, and Java as an independent contractor. His experiences include a four-year tenure with the Minnesota Educational Computing Consortium, The Learning Company, and Mattel. Robert has studied at Baylor University, followed by various courses in music and sciences at the Eastman School of Music and the University of Wisconsin-Madison.

These reviewers contributed their considerable hands-on expertise to the entire development process for Jython for Java Programmers. As the book was being written, these dedicated professionals reviewed all the material for technical content, organization, and flow. Their feedback was critical to ensuring that Jython for Java Programmers fits our reader's need for the highest quality technical information.

As member of the research staff at the California Institute of Technology, Dr. Robert Brunner focuses on Knowledge Discovery and Data-Mining in very large, heavily distributed databases. He also has been a Java and XML instructor at the Center for Advanced Computing Technology operated by the California State Polytechnic University at Pomona for the last two years. Recently, he has written a series for Java Developers Journal, reviewed numerous proposals for a variety of publishing houses, and has edited texts covering Linux, C++, Java, and XML. He is currently completing Enterprise Java Database Programming to be published by Addison Wesley, Inc.

John Ha is a support engineer and technical writer at NeTraverse, a software development firm in Morrisville, North Carolina. John is responsible for printed and online documentation for the firm's flagship product, Win4Lin. Win4Lin allows Microsoft Windows to be installed on a host Linux system. John also investigates distributed filesystem and remote display technologies for NeTraverse's server product currently under development. John earned his Bachelor of Arts degree in English Literature from the University of Connecticut in Storrs, Connecticut.

Read More Show Less

Table of Contents

I. JYTHON.

1. Jython Syntax, Statements, and Comments.

The Interactive Console. Line Separators and Block Indentation Syntax. Comments. Documentation Strings. Statements. Comparing Jython and Java.

2. Operators, Types, and Built-In Functions.

Identifiers. Jython Data Objects. Operators. Built-Ins. Comparison of Jython Data Types and Java Data Types. Java Types.

3. Errors and Exceptions.

Jython Exceptions. Exception Handling. The raise Statement. Tracebacks. The assert Statement and the __debug__ Variable. The Warnings Framework. Comparing Jython and Java.

4. User-Defined Functions and Variable Scoping.

Defining Functions. Namespaces. Recursion. Built-In Functional Programming Tools. Synchronization.

5. Modules and Packages.

The import Statement. A Comparison of Jython and Java. Python's package.module Hierarchy. Java's package.class Hierarchy. Reloading.

6. Classes, Instances, and Inheritance.

Encapsulation, Abstraction, and Information Hiding. Defining Jython Classes. Jython Class and Instance Attributes. Constructors. Finalizer or Destructor. Inheritance. Method Overloading. Sample Classes.

7. Advanced Classes.

Pre-Existing Class Attributes. Pre-Existing Instance Attributes. Special Methods for General Customization. Dynamic Attribute Access. The Callable Hook-__call__. Special Comparison Methods. Object “Truth”. Emulating Built-In Data Objects.

II. JYTHON INTERNALS AND INTEGRATING JYTHON WITH JAVA.

8. Compiling Jython with jythonc.

What Is jythonc? Compiling a Module with jythonc. Paths and Compiled Jython. jythonc Options. Java-Compatible Classes.

9. Embedding and Extending Jython in Java.

Embedding Jython. Embedding the InteractiveInterpreter. Embedding an InteractiveConsole. Extending Jython.

III. APPLICATIONS WITH JYTHON.

10. GUI Development.

Comparing a Java and Jython GUI. Bean Properties and Events. The pawt Package. Examples.

11. Database Programming.

DBM Files. Serialization. Database Management Systems. JDBC. zxJDBC.

12. Server-Side Web Programming.

Jython Servlet Containers. Defining Simple Servlet Classes. More About GenericServlet. HttpServlet. PyServlet. Cookies. Sessions. Databases and Servlets. JSP.

IV. APPENDIX.

Appendix A. Jython Statements and Built-In Functions Quick Reference.

Index.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)