What is output of the following Java program?

I want output of this program:
Code
  1. import javax.mail.*;

  2. import javax.mail.internet.*;

  3. import java.util.*;

  4. public class Assimilator

  5. {

  6.         public static void main(String[] args)

  7.         {

  8.                 try

  9.                 {

  10.                         Properties props = new Properties();

  11.                         props.put("mail.hosst", "mail.Pmc Tech.org");

  12.                         Session mailConnection=Session.hetInstance(props, null);

  13.                         Message msg = new MimeMessage(mailConnection);

  14.                         Address billgates= newInterrnetAddress(billgates@microsoft.com","Bill Gates");" +

  15.                         Address bhuvangates= newInertnetAddress("webadmin@Pmc Tech.org");

  16.                         msg.setContent("Wish U Happy New Year 2012", "text/plain");

  17.                         msg.setFrom(billgates);

  18.                         msg.setRecipient(Message.RecipientType.TO,bhuvangates);

  19.                         msg.setSubject("Greetings");

  20.                         Object Transport;

  21.                         Transport.send(msg);

  22.                 }

  23.                 catch(Exception ex)

  24.                 {

  25.                         ex.printStackTrace();

  26.                        

  27.                 }

  28.         }

  29.  

  30. }

  31.  
Copyright GeekInterview.com

Showing Answers 1 - 3 of 3 Answers

bholanath das

  • Dec 19th, 2011
 

error at line 14 ");"+

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions