Currently browsing category

Java, Page 39


How to send mail using Java Mail API?

The Java Mail API provides support for sending and receiving electronic mail messages. The API provides a plug-in architecture where vendor’s implementation …


Generation of Random Numbers

Random numbers in java can be generated either by using the Random class in java.util package or by using the random() method …


Creating user defined exceptions

Though Java provides an extensive set of in-built exceptions, there are cases in which we may need to define our own exceptions …

Pin It on Pinterest