0% found this document useful (0 votes)
9 views1 page

Java1 10

Uploaded by

bjinfotech95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Java1 10

Uploaded by

bjinfotech95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Java

The Dictionary Class .................................................................................................................................... 430


The Map Interface ....................................................................................................................................... 431
The Hashtable Class ..................................................................................................................................... 433
The Properties Class .................................................................................................................................... 437
The BitSet Class ........................................................................................................................................... 440
The Collection Algorithms ........................................................................................................................... 445
How to Use an Iterator ? ............................................................................................................................. 450
How to Use a Comparator ? ........................................................................................................................ 454
Summary ..................................................................................................................................................... 456

30. Java – Generics ..................................................................................................................................... 457


Generic Methods ......................................................................................................................................... 457
Bounded Type Parameters .......................................................................................................................... 459
Generic Classes ............................................................................................................................................ 460

31. Java – Serialization ................................................................................................................................ 462


Serializing an Object .................................................................................................................................... 463
Deserializing an Object ................................................................................................................................ 464

32. Java – Networking................................................................................................................................. 466


URL Processing ............................................................................................................................................ 466
URL Class Methods ...................................................................................................................................... 467
URLConnections Class Methods .................................................................................................................. 470
Socket Programming ................................................................................................................................... 473
ServerSocket Class Methods ....................................................................................................................... 474
Socket Class Methods .................................................................................................................................. 475
InetAddress Class Methods ......................................................................................................................... 477
Socket Client Example ................................................................................................................................. 477
Socket Server Example ................................................................................................................................ 479

33. Java – Sending E-mail ............................................................................................................................ 481


Send a Simple E-mail ................................................................................................................................... 481
Send an HTML E-mail ................................................................................................................................... 483
Send Attachment in E-mail .......................................................................................................................... 485
User Authentication Part ............................................................................................................................. 487

34. Java – Multithreading ........................................................................................................................... 488


Life Cycle of a Thread .................................................................................................................................. 488
Thread Priorities .......................................................................................................................................... 489
Create a Thread by Implementing a Runnable Interface ............................................................................ 489
Create a Thread by Extending a Thread Class ............................................................................................. 491
Thread Methods .......................................................................................................................................... 494
Major Java Multithreading Concepts .......................................................................................................... 499
Thread Synchronization ............................................................................................................................... 499
Interthread Communication ........................................................................................................................ 504
Thread Deadlock .......................................................................................................................................... 507
Thread Control............................................................................................................................................. 510

35. Java – Applet Basics .............................................................................................................................. 515


Life Cycle of an Applet ................................................................................................................................. 515
A "Hello, World" Applet ............................................................................................................................... 516
ix

You might also like