Start reading Java API FAQ (Code Style FAQ ebook series) on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.
This title is not currently available for purchase
Read books on your computer or other mobile devices with our FREE Kindle Reading Apps.
Java API FAQ (Code Style FAQ ebook series)
 
 

Java API FAQ (Code Style FAQ ebook series) [Kindle Edition]

Philip Shaw

Pricing information not available.


Product Description

Product Description

The core Java API package holds the key to the nature of Java exceptions, dynamic class loading, Java system integration and memory management.

This Java API ebook has detailed examples of Java exception handling, access to system properties and console streams and shows how to run Windows programs from Java.


What if you were One Percent Better with the core Java API?

* You cast off doubt and revel in dynamic class loading
* You run Windows apps from Java, that's cool
* Legacy classes and deprecated methods lose their mystery
* You play catch and throw with exceptions
* You switch console streams like TV channels

What's inside the Java API ebook?

* 20 core Java API questions and answers
* 11 extra Java API answers from other FAQs

The Java API FAQ ebook helps you solve problems like these.


Java API versions

What are legacy classes?
You've heard of legacy classes but need a pointer on class compatibility.

* What's the difference between the Java versions?
* Where can I find out more about the Java API?


Java system integration

What is System.out?
System.out seems different from other Java classes until you learn how Java console output works.

Are the Java console streams subclasses of System?
The dot separators in System.out.println() point to the nature of Java console streams.

* How do I get the name of the operating system?
* How do I find the size of an object in Java?
* How can I copy process information from Windows task manager?


Java exceptions

What is a NullPointerException in Java?
NullPointerExceptions flag simple bugs that can you can anticipate and check.

* What's the difference between checked and un-checked exceptions?
* Can you give an example of catching an exception?
* How can I throw a NumberFormatException back to the main() method?


Class loading

How can I get a class reference without using new operator?
Avoid specific class references and learn to load a class at runtime.

What's the difference between the Class.forName() method and the new operator?
You've got a class reference, now find out how to get an instance.

* What is the return type for the Class.forName(String) method?
* How can I implement the Class.forName() scheme?
* How can I cast an unknown sub-class returned by newInstance()?
* Is Class.forName() runtime polymorphism?


Java Abstract Window Toolkit classes

What is the difference between heavyweight and lightweight components?
Understand heavyweight interface elements and choose the right Java GUI components.

* How do I draw a Rectangle on a Graphics instance?


Extra Java API questions

This ebook includes 11 extra Java API-related answers from 7 other Java FAQs.

* How does Class.forName(dbDriver) work with DriverManager.getConnection()?
* Why not statically import a database driver class?
* How can I get the path to an installed program?
* How can I divert console output to a file?
* What does this deprecation message mean?
* How can I find the inherited attributes of a class?
* Is an API a help document?
* What's the difference between an interface and an API?
* I get “incompatible return type” for my thread's getState( ) method!
* Apache Log4J has thrown a ThreadDeath error!
* Why is Vector a legacy class?

Product details

  • Format: Kindle Edition
  • File Size: 142 KB
  • Simultaneous Device Usage: Unlimited
  • Publisher: One Percent Better; 1.0 edition (6 Nov 2010)
  • Language: English
  • ASIN: B004CFB83C
  • Text-to-Speech: Enabled
  • X-Ray: Not Enabled
  • Amazon Bestsellers Rank: #760,474 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


More About the Author

Discover books, learn about writers, and more.

Customer Reviews

There are no customer reviews yet.
5 star
4 star
3 star
2 star
1 star

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
 

Search Customer Discussions
Search all Amazon discussions
   


Look for similar items by category