ebook img

C# for Java Programmers PDF

642 Pages·2002·4.848 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview C# for Java Programmers

1 YEAR UPGRADE BUYER PROTECTION PLAN C # J a v a for P r o g r a m m e r s Use Your Knowledge of Java to Quickly Master C# • ExpertRecommendations and Comparisons of Each Language • Download All of the Source Code from www.syngress.com • Complete,Clear Definitions of the .NET Framework for J2EE Developers Brian Bagnall Philip Chen Stephen Goldberg Jeremy Faircloth Technical Reviewer Harold Cabrera Technical Editor 223_C#Java_FM.qxd 5/22/02 9:50 AM Page i s o l u t i o n s @ s y n g r e s s . c o m With more than 1,500,000 copies of our MCSE, MCSD, CompTIA, and Cisco study guides in print, we continue to look for ways we can better serve the information needs of our readers. One way we do that is by listening. Readers like yourself have been telling us they want an Internet-based ser- vice that would extend and enhance the value of our books. Based on reader feedback and our own strategic plan, we have created a Web site that we hope will exceed your expectations. [email protected] is an interactive treasure trove of useful infor- mation focusing on our book topics and related technologies. The site offers the following features: (cid:2) One-year warranty against content obsolescence due to vendor product upgrades. You can access online updates for any affected chapters. (cid:2) “Ask the Author” customer query forms that enable you to post questions to our authors and editors. (cid:2) Exclusive monthly mailings in which our experts provide answers to reader queries and clear explanations of complex material. (cid:2) Regularly updated links to sites specially selected by our editors for readers desiring additional reliable information on key topics. Best of all, the book you’re now holding is your key to this amazing site. Just go to www.syngress.com/solutions, and keep this book handy when you register to verify your purchase. Thank you for giving us the opportunity to serve your needs. And be sure to let us know if there’s anything else we can do to help you get the maximum value from your investment. We’re listening. www.syngress.com/solutions 223_C#Java_FM.qxd 5/22/02 9:50 AM Page ii 223_C#Java_FM.qxd 5/22/02 9:50 AM Page iii 1 YEAR UPGRADE BUYER PROTECTION PLAN C # J a v a for P r o g r a m m e r s Brian Bagnall Philip Chen Stephen Goldberg Jeremy Faircloth Technical Reviewer Harold Cabrera Technical Editor 223_C#Java_FM.qxd 5/22/02 9:50 AM Page iv Syngress Publishing,Inc.,the author(s),and any person or firm involved in the writing,editing,or production (collectively “Makers”) of this book (“the Work”) do not guarantee or warrant the results to be obtained from the Work. There is no guarantee of any kind,expressed or implied,regarding the Work or its contents.The Work is sold AS IS and WITHOUT WARRANTY.You may have other legal rights,which vary from state to state. In no event will Makers be liable to you for damages,including any loss of profits,lost savings,or other incidental or consequential damages arising out from the Work or its contents.Because some states do not allow the exclusion or limitation of liability for consequential or incidental damages,the above limitation may not apply to you. You should always use reasonable care,including backup and other appropriate precautions,when working with computers,networks,data,and files. Syngress Media®,Syngress®,“Career Advancement Through Skill Enhancement®,”and “Ask the Author UPDATE®,”are registered trademarks of Syngress Publishing,Inc.“Mission Critical™,”“Hack Proofing®,”and “The Only Way to Stop a Hacker is to Think Like One™”are trademarks of Syngress Publishing,Inc.Brands and product names mentioned in this book are trademarks or service marks of their respective companies. KEY SERIAL NUMBER 001 JA9CK8HUM2 002 7YQA4FT7MZ 003 PE5ET3K8N6 004 8YG6FTX54A 005 7TBJ45S3KQ 006 SH7T3W2NAR 007 UBT46NEA2P 008 VC29KLBG5R 009 JKR34SDH78 010 TG7BH34WSX PUBLISHED BY Syngress Publishing,Inc. 800 Hingham Street Rockland,MA 02370 C# for Java Programmers Copyright © 2002 by Syngress Publishing,Inc.All rights reserved.Printed in the United States of America.Except as permitted under the Copyright Act of 1976,no part of this publication may be reproduced or distributed in any form or by any means,or stored in a database or retrieval system, without the prior written permission of the publisher,with the exception that the program listings may be entered,stored,and executed in a computer system,but they may not be reproduced for publication. Printed in the United States of America 1 2 3 4 5 6 7 8 9 0 ISBN: 1-931836-54-X Technical Editor:Harold Cabrera Cover Designer:Michael Kavish Technical Reviewer:Jeremy Faircloth Page Layout and Art by:Shannon Tozier Acquisitions Editor:Jonathan Babcock Copy Editor:Mike McGee,Jesse Corbeil Indexer:J.Edmund Rush Distributed by Publishers Group West in the United States and Jaguar Book Group in Canada. 223_C#Java_FM.qxd 5/22/02 9:50 AM Page v Acknowledgments We would like to acknowledge the following people for their kindness and support in making this book possible. Ralph Troupe,Rhonda St.John,Emlyn Rhodes and the team at Callisma for their invaluable insight into the challenges of designing,deploying and supporting world- class enterprise networks. Karen Cross,Lance Tilford,Meaghan Cunningham,Kim Wylie,Harry Kirchner,Kevin Votel,Kent Anderson,Frida Yara,Jon Mayes,John Mesjak,Peg O’Donnell,Sandra Patterson,Betty Redmond,Roy Remer,Ron Shapiro,Patricia Kelly,Andrea Tetrick, Jennifer Pascal,Doug Reil,David Dahl,Janis Carpenter,and Susan Fryer of Publishers Group West for sharing their incredible marketing experience and expertise. Jacquie Shanahan,AnnHelen Lindeholm,David Burton,Febea Marinetti,and Rosie Moss of Elsevier Science for making certain that our vision remains worldwide in scope. Annabel Dent and Paul Barry of Elsevier Science/Harcourt Australia for all their help. David Buckland,Wendi Wong,Marie Chieng,Lucy Chong,Leslie Lim,Audrey Gan, and Joseph Chan of Transquest Publishers for the enthusiasm with which they receive our books.And welcome back to Daniel Loh—glad to have you back Daniel! Kwon Sung June at Acorn Publishing for his support. Ethan Atkin at Cranbury International for his help in expanding the Syngress program. Jackie Gross,Gayle Voycey,Alexia Penny,Anik Robitaille,Craig Siddall,Darlene Morrow,Iolanda Miller,Jane Mackay,and Marie Skelly at Jackie Gross & Associates for all their help and enthusiasm representing our product in Canada. Lois Fraser,Connie McMenemy,Shannon Russell and the rest of the great folks at Jaguar Book Group for their help with distribution of Syngress books in Canada. Thank you to our hard-working colleagues at New England Fulfillment & Distribution who manage to get all our books sent pretty much everywhere in the world.Thank you to Debbie “DJ”Ricardo,Sally Greene,Janet Honaker,and Peter Finch. vv 223_C#Java_FM.qxd 5/22/02 9:50 AM Page vi 223_C#Java_FM.qxd 5/22/02 9:50 AM Page vii Contributors Philip Chen (MCP,JCP) is an independent consultant in enterprise Web infrastructure and distributed application architecture.Philip’s specialties include J2EE and .NET based server-client application development, database integration,and technology migration.Philip’s background includes positions as a senior member of technical staff at SUN Microsystems and as CTO/VP of Engineering at OnVest.com,an online financial analysis and investment planning firm.Philip holds a bachelor’s degree from UC Berkeley and a master’s degree from Stanford.Philip would like to thank his parents for their motivation and support throughout his life,and Dr.Si-En Chang and Dr.Liu-Xi Yang for their tremendous mentorship throughout his technical tenure. Chris Peiris currently lectures on Distributed Object Technology and Software Component Technologies subjects at Monash University, Caulfield,Victoria,Australia.He has been designing and developing MS Web solutions since 1995.His expertise lies in developing scalable,high- performance Web solutions for financial institutions and media groups.He has written many articles,reviews and columns for various online publica- tions including Developer Exchange (www.devx.com) and Wrox Press. Recently he co-authored the book C# Web Service with .NET Remoting and ASP.NET.Chris also presents at seminars at professional developer conferences including Microsoft Tech Ed 2002 in Brisbane,Australia.He is at work on his third book on Web Services.Chris’s core skills are C++, Java,.NET,DNA,MTS,Site Server,Data Warehousing,WAP,and SQL Server.Chris has a bachelor’s of Computing,bachelor’s of Business,and a master’s of Information Technology.Currently he is undertaking a Ph.D. on Web Service Trust Agents.Chris lives in Flemington,Melbourne, Australia with his family.He would like to thank his friends Sanjeev, Nilantha,Sumedha,Brumoon,Janik,Rowie,Andy,Natalie,Ben Loke, Mark Holmes,Ben Morrell,and Tommy.This is a measure of gratitude for the support,patience,guidance,and their friendship over the years. vii 223_C#Java_FM.qxd 5/22/02 9:50 AM Page viii Stephen Goldberg (CCNP,MCP,MCP+I,MCSE) is a Senior Developer with AT&T Labs.He currently works on the development team for the AT&T Netclient family of products.Stephen has developed client applications with several programming languages,including C/C++,Java,and C#.He is also a Founder and Development Lead for Absolute IT Solutions LLC,a .NET solutions provider. Brian Bagnall (Sun Certified Java Programmer and Developer) is the author of the popular book Core LEGO MINDSTORMS Programming and co-author of the Sun Certified Programmer for Java 2 Study Guide.Brian has worked for IBM and other leading computer companies.He is a key programmer of leJOS,a Java SDK for LEGO MINDSTORMS.Brian has bridged the world of LEGO MINDSTORMS and .NET by figuring out how to program the LEGO RCX brick or Cybermaster using C#. David Chung (MCP,MCT,Sun Certified Java Programmer,WebLogic Certified Programmer,WebLogic Certified Trainer) is a Senior Consultant with LearningVoyage.He provides training and consulting services in Java and distributed object technologies to enterprise clients across the United States and Canada.David is a frequent conference speaker and author and is founder of the 380 Java Users group.David holds bachelor’s degrees in Mathematics and Computer Science from the University of Northern Iowa.He is the co-author of several Java programming books and training materials in C and C++.His development experience spans embedded systems,enterprise systems,and consumer software.David and his wife, Janice,have eight children whose names begin with ‘J’. Ed Lee (MCSD,MCSE,Sun Certified Java Programmer) is a consultant with the professional services division of a leading technology company, where he provides expert assistance on distributed system architecture and implementation.He has developed systems for many large enterprises using various technologies,including Java and C#.Prior to his current engagement,Ed worked as Vice President of Technology for Netexe,Inc., a provider of solutions for handheld and wireless devices,and a pioneer in using Java and the .NET Framework on mobile devices.Ed holds a viii 223_C#Java_FM.qxd 5/22/02 9:50 AM Page ix bachelor’s of Science and a master’s of Business Administration from Brigham Young University. Dreamtech Software Inc. is a software solution and service provider that provides a broad range of services and offers a dynamic blend of con- sultancy and system integration to help corporations build and implement innovative e-business strategies.A futuristic vision motivates the globally acclaimed software products of Dreamtech Software.Dreamtech has already distinguished itself with an excellent track record of publishing books on advanced technologies including XML and XSLT,WAP, Bluetooth,3G,peer-to-peer networking,C#,and Java.The success of Dreamtech’s endeavors to provide world-class software products can be gauged by the fact that its clientele includes some of the most distin- guished names in IT-related publishing and solutions. ix

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.