- Browse
- » Java: the complete reference
Java: the complete reference
Author
Publisher
Varies, see individual formats and editions
Publication Date
Varies, see individual formats and editions
Language
English
Description
Loading Description...
Table of Contents
From the Book - Ninth edition.
pt. I. The Java language. 1. The history and evolution of Java : Java's lineage ; The creation of Java ; How Java changed the Internet ; Java's magic: the bytecode ; Servlets: Java on the server side ; The Java buzzwords ; The evolution of Java ; Java SE 8 ; A culture of innovation 2. An overview of Java : Object-oriented programming ; A first simple program ; A second short program ; Two control statements ; Using blocks of code ; Lexical issues ; The Java class libraries 3. Data types, variables, and arrays : Java is a strongly typed language ; The primitive types ; Integers ; Floating-point types ; Characters ; Booleans ; A closer look at literals ; Variables ; Type conversion and casting ; Automatic type promotion in expressions ; Arrays ; A few words about strings ; A note to C/C++ programmers about pointers 4. Operators : Arithmetic operators ; The bitwise operators ; Relational operators ; Boolean logical operators ; The assignment operator ; The ? operator ; Operator precedence ; Using parentheses 5. Control statements : Java's selection statements ; Iteration statements ; Jump statements 6. Introducing classes : Class fundamentals ; Declaring objects ; Assigning object reference variables ; Introducing methods ; Constructors ; The this keyword ; Garbage collection ; The finalize ( ) method ; A stack class 7. A closer look at methods and classes : Overloading methods ; Using objects as parameters ; A closer look at argument passing ; Returning objects ; Recursion ; Introducing access control ; Understanding static ; Introducing final ; Arrays revisited ; Introducing nested and inner classes ; Exploring the string class ; Using command-line arguments ; Varargs: variable-length arguments 8. Inheritance : Inheritance basics ; Using super ; Creating a multilevel hierarchy ; When constructors are executed ; Method overriding ; Dynamic method dispatch ; Using abstract classes ; Using final with inheritance ; The object class 9. Packages and interfaces : Packages ; Access protection ; Importing packages ; Interfaces ; Default interface methods ; Use statis methods in an interface ; Final thoughts on packages and interfaces 10. Exception handling : Exception-handling fundamentals ; Exception types ; Uncaught exceptions ; Using try and catch ; Multiple catch clauses ; Nested try statements ; Throw ; Throws ; Finally ; Java's build-in exceptions ; Creating your own exception subclasses ; Chained exceptions ; Three recently added exception features ; Using exceptions 11. Multithreaded programming : The Java thread model ; The main thread ; Creating a thread ; Creating multiple threads ; Using isAlive ( ) and join ( ) ; Thread priorities ; Synchronization ; Interthread communication ; Suspending, resuming, and stopping threads ; Obtaining a thread's state ; Using multithreading 12. Enumerations, autoboxing, and annotations (metadata) : Enumerations ; Type wrappers ; Autoboxing ; Annotations (metadata) ; Type annotations ; Repeating annotations 13. I/O, applets, and other topics : I/O basics ; Reading console input ; Writing console output ; The PrintWriter class ; Reading and writing files ; Automatically closing a file ; Applet fundamentals ; The transient and volatile modifiers ; Using instanceof ; Strictfp ; Native methods ; Problems with native methods ; Using assert ; Static import ; Invoking overloaded constructors through this ( ) ; Compact API profiles 14. Generics : What are generics? ; A simple generics example ; A generic class with two type parameters ; The general form of a generic class ; Bounded types ; Using wildcard arguments ; Creating a generic method ; Generic interfaces ; Raw types and legacy code ; Generic class hierarchies ; Type inference with generics ; Erasure ; Ambiguity errors ; Some generic restrictions 15. Lambda expressions : Introducing lambda expressions ; Block lambda expressions ; Generic functional interfaces ; Passing lambda expressions as arguments ; Lambda expressions and exceptions ; Lambda expressions and variable capture ; Method references ; Constructor references ; Predefined functional interfaces
pt. II. The Java library. 16. String handling : The string constructors ; String length ; Special string operations ; Character extraction ; String comparison ; Searching strings ; Modifying a string ; Data conversion using valueOf ( ) ; Changing the case of characters within a string ; Joining strings ; Additional string methods ; StringBuffer ; StringBuilder 17. Exploring java.lang : Primitive type wrappers ; Void ; Process ; Runtime ; ProcessBuilder ; System ; Object ; Using clone ( ) and the cloneable interface ; Class ; ClassLoader ; Math ; StrictMath ; Compiler ; Thread, ThreadGroup and runnable ; ThreadLocal and InheritableThreadLocal ; Package ; RuntimePermission ; Throwable ; SecurityManager ; StackTraceElement ; Enum ; ClassValue ; The CharSequence interface ; The comparable interface ; The appendable interface ; The iterable interface ; The readable interface ; The AutoCloseable interface ; The Thread.UncaughtExceptionHandler interface ; The java.lang subpackages 18. java.util Part 1: The collections framework : Collections overview ; JDK 5 changed the collections framework ; The collection interfaces ; The collection classes ; Accessing a collection via an iterator ; Spliterators ; Storing user-defined classes in collections ; The RandomAccess interface ; Working with maps ; Comparators ; The collection algorithms ; Arrays ; The legacy classes and interfaces ; Parting thoughts on collections 19. java.util Part 2: More utility classes : StringTokenizer ; BitSet ; Optional, OptionalDouble, OptionalInt, and OptionalLong ; Date ; Calendar ; GregorianCalendar ; TimeZone ; SimpleTimeZone ; Locale ; Random ; Observable ; Timer and TimerTask ; Currency ; Formatter ; Scanner ; The ResourceBundle, ListResourceBundle, and PropertyResourceBundle classes ; Miscellaneous utility classes and interfaces ; The java.util subpackages 20. Input/output: exploring java.io : The I/O classes and interfaces ; File ; The AutoCloseable, Closeable, and flushable interfaces ; I/O exceptions ; Two ways to close a stream ; The stream classes ; The byte streams ; The character streams ; The console class ; Serialization ; Stream benefits 21. Exploring NIO : The NIO classes ; NIO fundamentals ; Enhancements added to NIO by JDK 7 ; Using the NIO system ; Pre-JDK 7 channel-based examples 22. Networking : Networking basics ; The networking classes and interfaces ; Inet/Address ; Inet4Address and Inet6Address ; TCP/IP client sockets ; URL ; URLConnection ; HttpURLConnection ; The URI class ; Cookies ; TCP/IP server sockets ; Datagrams 23. The applet class : Two types of applets ; Applet basics ; Applet architecture ; An applet skeleton ; Simple applet display methods ; Requesting repainting ; Using the status window ; The HTML APPLET tag ; Passing parameters to applets ; getDocumentBase ( ) and getCodeBase ( ) ; AppletContext and showDocument ( ) ; The AudioClip interface ; The AppletStub interface ; Outputting to the console 24. Event handling : Two event handling mechanisms ; The delegation event model ; Event classes ; The KeyEvent class ; Sources of events ; Event listener interfaces ; Using the delegation event model ; Adapter classes ; Inner classes 25. Introducing the AWT: working with windows, graphics, and text : AWT classes ; Window fundamentals ; Working with frame windows ; Creating a frame window in an AWT-based applet ; Creating a windowed program ; Displaying information within a window ; Introducing graphics ; Working with color ; Setting the paint mode ; Working with fonts ; Managing text output using FontMetrics 26. Using AWT controls, layout managers, and menus : AWT control fundamentals ; Labels ; Using buttons ; Applying check boxes ; CheckboxGroup ; Choice controls ; Using lists ; Managing scroll bars ; Using a TextField ; Using a TextArea ; Understanding layout managers ; Menu bars and menus ; Dialog boxes ; FileDialog ; A word about overriding paint ( ) 27. Images : File formats ; Image fundamentals: creating, loading, and displaying ; ImageObserver ; Double buffering ; MediaTracker ; ImageProducer ; ImageConsumer ; ImageFilter ; Additional imaging classes 28. The concurrency utilities : The concurrent API packages ; Using synchronization objects ; Phaser ; Using an executor ; The TimeUnit enumeration ; the concurrent collections ; Locks ; Atomic operations ; Parallel programming via the fork/join framework ; The concurrency utilities versus Java's traditional approach 29. The stream API : Stream basics ; Reduction operations ; Using parallel streams ; Mapping ; Collecting ; Iterators and streams ; More to explore in the stream API 30. Regular expressions and other packages : The core Java API packages ; Regular expression processing ; Reflection ; Remote method invocation (RMI) ; Formatting date and time with java.text ; The time and date API added by JDK 8
pt. III. Introducing GUI programming with swing. 31. Introducing swing : The origins of swing ; Swing is built on the AWT ; Two key swing features ; The MVC connection ; Components and containers ; The swing packages ; A simple swing application ; Event handling ; Create a swing applet ; Painting in swing 32. Exploring swing : JLabel and ImageIcon ; JTextField ; The swing buttons ; JTabbedPane ; JScrollPane ; JList ; JComboBox ; Trees ; JTable 33. Introducing swing menus : Menu basics ; An overview of JMenuBar, JMenu, and JMenuItem ; Create a main menu ; Add Mnemonics and accelerators to menu items ; Add images and tooltips to menu items ; Use JRadioButtonMenuItem and JCheckBoxMenuItem ; Create a popup menu ; Create a toolbar ; Use actions ; Put the entire MenuDemo program together ; Continuing your exploration of swing
pt. IV. Introducing GUI programming with JavaFX. 34. Introducing JavaFX GUI programming : JavaFX basic concepts ; A JavaFX application skeleton ; Compiling and running a JavaFX program ; The application thread ; A simple JavaFX control: label ; Using buttons and events ; Drawing directly on a canvas 35. Exploring JavaFX controls : Using image and ImageView ; ToggleButton ; RadioButton ; CheckBox ; ListView ; ComboBox ; TextField ; ScrollPane ; TreeView ; Introducing effects and transforms ; Adding tooltips ; Disabling a control 36. Introducing JavaFX menus : Menu basics ; An overview of MenuBar, Menu, and MenuItem ; Create a main menu ; Add mnemonics and accelerators to menu items ; Add images to menu items ; Use RadioMenuItem and CheckMenuItem ; Create a context menu ; Create a toolbar ; Put the entire MenuDemo program together ; Continuing your exploration of JavaFX
pt. V. Applying Java. 37. Java beans : What is a Java bean? ; Advantages of Java beans ; Introspection ; Bound and constrained properties ; Persistence ; Customizers ; The Java beans API ; A bean example
38. Introducing servlets : Background ; The life cycle of a servlet ; Servlet development options ; Using Tomcat ; A simple servlet ; The servlet API ; The javax.servlet package ; Reading servlet parameters ; The javax.servlet.http package ; Handling HTTP requests and responses ; Using cookies ; Session tracking
Appendix. Using Java's documentation comments : The javadoc tags ; The general form of a documentation comment ; What javadoc outputs ; An example that uses documentation comments.
Excerpt
Loading Excerpt...
Author Notes
Loading Author Notes...
More Details
Contributors
ISBN
9780071808552
9780071606301
9780071808569
125958934
9786613210470
9781265062705
9781260440249
9781259589348
9781260463415
9780071606318
9780071606301
9780071808569
125958934
9786613210470
9781265062705
9781260440249
9781259589348
9781260463415
9780071606318
Staff View
Loading Staff View.

