I want output of this program:
Code
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
public class Assimilator
{
public static void main
(String[] args
)
{
try
{
props.put("mail.hosst", "mail.Pmc Tech.org");
Session mailConnection=Session.hetInstance(props, null);
Message msg = new MimeMessage(mailConnection);
Address billgates= newInterrnetAddress(billgates@microsoft.com","Bill Gates");" +
Address bhuvangates= newInertnetAddress("webadmin@Pmc Tech.org");
msg.setContent("Wish U Happy New Year 2012", "text/plain");
msg.setFrom(billgates);
msg.setRecipient(Message.RecipientType.TO,bhuvangates);
msg.setSubject("Greetings");
Transport.send(msg);
}
{
ex.printStackTrace();
}
}
}
Copyright GeekInterview.com
What is output of the following Java program?
Related Answered Questions
Related Open Questions