Amazon.com: Java 1.2 and JavaScript for C and C++ Programmers (9780471183594): Michael C. Daconta, Al Saganich, Eric Monk, Martin Snyder: Books

Buy Used
Used - Good See details
$4.50 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Have one to sell? Sell yours here
Java 1.2 and JavaScript for C and C++ Programmers
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Java 1.2 and JavaScript for C and C++ Programmers [Paperback]

Michael C. Daconta (Author), Al Saganich (Author), Eric Monk (Author), Martin Snyder (Author)
2.8 out of 5 stars  See all reviews (5 customer reviews)


Available from these sellers.


Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

There is a newer edition of this item:
Java 2 and JavaScript for C and C++ (Programmers, Revised Edition) Java 2 and JavaScript for C and C++ (Programmers, Revised Edition) 2.9 out of 5 stars (8)
Out of Print--Limited Availability

Book Description

1998 0471183598 978-0471183594
The quickest way to learn how to build Java and JavaScript applications
  • Complete working programs illustrate every major concept
  • Fully covers JDKTM 1.2 and the class libraries you need to create full-scale applications.

This powerful book/CD package is for C and C++ programmers who'd like to quickly learn how to build full-scale applications in Java and JavaScript. Revised and expanded from its bestselling predecessor, Java for C/C++ Programmers, it features the same rapid skill-building format that allows you to produce simple Java programs within an hour, and more complex ones within a few days, by building on C and C++ concepts you already know.

You'll quickly become familiar with all Java and JavaScript features, including all the major new APIs that you'll need to create full-scale business applications. Through a series of progressively more complicated fully working applications, this guide schools you in basic and advanced techniques for building full-blown applications using Java Foundation Classes, JavaBeansTM, JDBC, NMI, and RMI.

Java 1.2 and JavaScript for C and C++ Programmers:

  • Fully covers Java through JDKTM 1.2
  • Shows how to link Java applets with JavaScript
  • Teaches how to integrate Java with ActiveX
  • Shows how to interface C, C++, and Java applications
  • Demonstrates how to integrate video using the Java Media Framework.

On the CD-ROM you'll find:

  • All the source code from the fully working programs in the book
  • Exciting demos, including a drawing program demonstrating selectable and resizable objects, a robot war simulation, and valuable utilities, including a custom layout manager, a search applet, and an online book service servlet
  • Trial versions of the Supercede development environment, WingSoft Editor, WingSoft Decompiler, and TextPad
  • ObjectSpace's highly acclaimed Generic Component Library for Java and Voyager distributed computing technology
  • Try-and-Buy versions of JavaTM StudioTM and JavaTM WorkShopTM.

Java and all Java-based trademarks are trademarks or registered trademarks of Sun Microsystems, Inc., in the U.S. and other countries.


Editorial Reviews

From the Publisher

This powerful book/CD-Rom package is for C and C++ programmers who would like to quickly learn how to build full-scale application in Java and JavaScript. Revised and expanded from its bestselling predecossor, Java for C and C++ Programmers, it features the same rapid skill-building format that allows you to produce simple Java programs within an hour, and more complex ones within a few days, by building on C and C++ concepts you already know. You will quickly become familiar with all Java and JavaScript features, including all the major new APIs that you will need to create full-scale business applications. Through a series of progressively more complicated working applications, this guide schools you in basic and advanced techniques for building full-blown appplications using Java Foundation Classes, JavaBeans, JDBC, NMI, and RMI. It also covers Java through JDK 1.2, shows how to link Java applets with JavaScript, teaches how to integrate Java with ActiveX, and demonstrates how to integrate video using the Java Media Framework.

From the Back Cover

"The quickest way to learn how to build Java and JavaScript applications Complete working programs illustrate every major concept Fully covers JDKTM 1.2 and the class libraries you need to create full-scale applications.

This powerful book/CD package is for C and C++ programmers who'd like to quickly learn how to build full-scale applications in Java and JavaScript. Revised and expanded from its bestselling predecessor, Java for C/C++ Programmers, it features the same rapid skill-building format that allows you to produce simple Java programs within an hour, and more complex ones within a few days, by building on C and C++ concepts you already know.

You'll quickly become familiar with all Java and JavaScript features, including all the major new APIs that you'll need to create full-scale business applications. Through a series of progressively more complicated fully working applications, this guide schools you in basic and advanced techniques for building full-blown applications using Java Foundation Classes, JavaBeansTM, JDBC, NMI, and RMI.

Java 1.2 and JavaScript for C and C++ Programmers: Fully covers Java through JDKTM 1.2 Shows how to link Java applets with JavaScript Teaches how to integrate Java with ActiveX Shows how to interface C, C++, and Java applications Demonstrates how to integrate video using the Java Media Framework.

On the CD-ROM you'll find: All the source code from the fully working programs in the book Exciting demos, including a drawing program demonstrating selectable and resizable objects, a robot war simulation, and valuable utilities, including a custom layout manager, a search applet, and an online book service servlet Trial versions of the Supercede development environment, WingSoft Editor, WingSoft Decompiler, and TextPad ObjectSpace's highly acclaimed Generic Component Library for Java and Voyager distributed computing technology Try-and-Buy versions of JavaTM StudioTM and JavaTM WorkShopTM.

Java and all Java-based trademarks are trademarks or registered trademarks of Sun Microsystems, Inc., in the U.S. and other countries.


Product Details

  • Paperback: 704 pages
  • Publisher: Wiley (1998)
  • Language: English
  • ISBN-10: 0471183598
  • ISBN-13: 978-0471183594
  • Product Dimensions: 9.2 x 7.5 x 1.9 inches
  • Shipping Weight: 3.2 pounds
  • Average Customer Review: 2.8 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Best Sellers Rank: #2,299,520 in Books (See Top 100 in Books)

 

Customer Reviews

5 Reviews
5 star:    (0)
4 star:
 (1)
3 star:
 (2)
2 star:
 (2)
1 star:    (0)
 
 
 
 
 
Average Customer Review
2.8 out of 5 stars (5 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

2 of 2 people found the following review helpful:
2.0 out of 5 stars Useful Java material, but..., February 17, 1999
By A Customer
This review is from: Java 1.2 and JavaScript for C and C++ Programmers (Paperback)
I found the Java material quite useful and informative, however, I bought this book in March of 1998, when JDK 1.2 was not even released!!! So this mystery vexes me a lot! It seems the authors are trying to jump on the publication frenzy and bandwagon. The Java stuff in there is good, I just question the accuracy of it all.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2.0 out of 5 stars Badly written book - avoid it!, May 20, 1999
By A Customer
This review is from: Java 1.2 and JavaScript for C and C++ Programmers (Paperback)
The book was published in January 1998 so it only reflects pre-beta changes. Unfortunately, this can be spotted in both the quality of the text and its reflecting advanced Java 2 things (no mention of Collections etc). It wouldn't alone make a book bad - after all, you should buy for example Thinking in Java that has a wonderful chapter on Collections -, but the 1.0 / 1.1-specific stuff is also badly explained. Very important C/C++-related subjects are not mentioned: the inherent differences between C/C++'s and Java's static is not even mentioned. Comparing the C++ and Java exception libraries is also painfully missing from the book. And there are a lot of C++ listings in the book without much help - the authors seem to forget sometimes that they're working on a book on Java and not on C++.

Core Java has no C++ in its title, but I still found it at least as useful as this book when it comes to emphasizing the differences and similarities between the two languages. Having lost its greatest advantage over Core Java, the book has nothing to offer for the seasoned programmer. It's weak as a reference, it's even weaker at actually teaching Java in a comprehensible way. C programmers should not try to learn the Java from this book - especially not OOP. The book's sections targeted at C programmers don't actually teach how an OOP structure can be translated into plain C. C++ programmers may find the book relatively easy to understand. Books like Thinking in Java or Core Java are still far more comprehensible - I don't really think you should present your beginner readers complete applications that utilize streams right at the beginning. Let's agree to differ - some readers may find it cool to get complete, non-toy (?) applications - I didn't. Some chapters only have one or two big examples (there are - later - chapters that don't have any!) - a lot of small code snippets teach the language far more efficiently than a big one, no matter how complicated and advanced it is.

The comparisons to C and C++ in the first five chapters are overwhelming (still, as was already mentioned, some key differences haven't been mentioned); later chapters don't compare Java to C(++) any more - they may have been written by different authors.

The book doesn't explain name conventions. Doesn't use them either. Most classnames begin with lowercase letters - very annoying! Another common mistake is importing the classes used in the same package - especially in the first chapter. As with most Wiley titles, there is no code highlighting in the book, and the editing is, in general, quite sloppy (quite a few typos, duplicated words etc).

Chapter 1: Introduction to Java: compares almost everything to C/C++. The rest of the chapter describes how JDK should be installed and used.

p. 16: "...which is why the main function of Source 1.7 only contains the constructor for the bookWindow()"; "once we have added all the components, we can... size the window using either width or height or the pack() methods". The book being written in late 1997, it still refers to classes.zip and CLASSPATH.

Chapter 2: Comparing Java to ANSI C: explains packages, import (also emphasizes the difference between import and #include). Compares keywords, literals, expressions, identifiers etc. between the two languages (allowed characters, length etc, but no name conventions). Compares arrays (also mentions reference arrays and their dangerous behavior) and strings. Even uses PixelGrabber in the examples - very hard to follow for a beginner. Quite interesting examples (Base16 coders etc). A section about the features removed from C: keywords, global variables, pointers, preprocessor directives, variable arguments (recommends using Vectors instead). The chapter is packed with C examples - sometimes you can feel it's a C tutorial. Lists the header files of the entire C standard library and shows their Java equivalents: assert -> nothing, ctype -> Character's methods, errno -> Exceptions, float, limits, locale -> i18n, math -> Math's methods; setjmp -> Exception, (p. 92: "since Java provides both exceptions and threads, there is need for setjmp and longjmp in Java" (that is, no need); signal -> Exception, stdarg -> Vector, stddef, stdio, stdlib, string, time.

The chapter doesn't try to teach any OOP-related subject.

Chapter 3: Comparing Java to C++: teaches some OOP (why not in the previous chapter, for the C programmers, who really need this introductory stuff?!) - the explanation is quite abstract and almost useless for a newbie to OOP (lacks almost everything that makes a good OOP text great). The book uses 'class methods' when referring to instance methods and static class methods when referring to static methods - very annoying for people that are used to the right terminology. Mentioned the difference between C++ and Java when it comes to initializing static class members.

The explicit super() explanation is OK, but the book never mentions the difference between Java and C++ in the usage of this() in the constructor (shows it in Java but doesn't mention it doesn't exist in C++).

Compares Java's clone() to C++'s copy constructor - just so as a decent Java book should introduce the subject. I find Core Java's or Thinking in Java's discussion much better, though. And most beginner C++ books do much better work at explaining why explicit copy constructors are needed.

Shows the syntactic difference between C++ and Java inheritance (while making a mistake in the table: a superfluous colon). Also shows abstract (pure virtual) methods: source 3.13, which comes right after this, has the main class drawShapes (yes, wrong capitalization) using AWT and the drawing methods of Graphics. As a lot of C++ books are showing examples of just this Shape <- Square / Triangle / Hexagon relationship with an abstract calculatePoints() in the superclass to make readers understand how overriding and dynamic method dispatch works, I expected this book the same: an example that has an array of type Shape containing elements of the above-mentioned subclasses, getting these elements out the array and calling calculatePoints() on them to see whether dynamic dispatch really works. Unfortunately, the authors have missed this chance to really show the readers how runtime binding works - you have to choose from the menu which shape to draw and voila - it gets drawn. No reference arrays of type superclass, nothing. The very next example does just this with a much less interesting example (actually, it's just another toy example).

Touches on exceptions, shows the difference between C++'s catchall - that is, catch (...) - and Java's catch (Exception). The C++ example here is again a very bulky one, it is only included here to show that in C++ you don't have to declare what kind of exceptions will be thrown out of any methods. Doesn't draw a line between unchecked and checked exceptions - it only happens later. Some severe errors are made:

"classes derived from the Exception class fall into the category of errors that can be recovered from, whereas classes derived from the RuntimeException generally cannot be recovered from" - this is not the only point where the readers show they confuse the subclasses of Error for the children of RuntimeException. It is a very severe error.

The chapter also discusses inner classes - quite brightly. I still miss the explanation of static member classes - the authors only devoted one sentence to them.

Also presents the C++ Standard Library (the comparison takes some 3 pages).

Chapter 4: Language features not in C or C++: discusses packages, interfaces (doesn't show how they can be used as types / for callback), dynamic type inquiries (Class.forName() etc. - this sub-chapter should have been put in Chapter 6 entirely) and threads.

This sub-chapter is quite weak: there is no wait/notify (not in the entire book, actually); doesn't try to explain what the difference between implementing Runnable and extending Thread is; doesn't try to explain why some methods got deprecated and has errors like the following: p.195: "the Runnable interface is simply implementing the run method".

Chapter 5: JNI; 17 pages;

Chapter 6: The Java Language Classes and Reflection: there is a severe error in the title, as it refers to java.lang and definitely not all classes of the language. Discusses wrapper classes (doesn't mention they're immutable; doesn't show which of them were introduced only in 1.1; and suggests only Integer and Long have parse<Type> methods), standard input/output/error (no info on actually redirecting them - another 1.1 issue), the Thread class (absolutely useless, as it doesn't have any new information - the toy example only creates a thread and doesn't do any sophisticated work); it lists the most important Error, Exception (and RuntimeException) classes - I found this quite useless. Again, it confuses the subclasses of Error for the children of RuntimeException: p. 258: " RuntimeException: ... these exceptions can be common (like running out of memory)...

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


3.0 out of 5 stars Good for Java, not so good for JavaScript, December 3, 1998
By A Customer
Amazon Verified Purchase(What's this?)
This review is from: Java 1.2 and JavaScript for C and C++ Programmers (Paperback)
I originally bought this book for JavaScript. I found that its main focus, however, is Java. It has lots of useful information about Java and in that respect I found it useful. I have found it a good companion book to the "Java Master Reference". If you are looking for detailed information on JavaScript, don't buy this book, instead get the JavaScript Bible.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews



Only search this product's reviews



Tag this product

 (What's this?)
Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organize and find favorite items.
Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums


Listmania!


Create a Listmania! list

So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject