Die meistgefragten Interviewfragen und Antworten sowie Online-Tests
Lernplattform fur Interviewvorbereitung, Online-Tests, Tutorials und Live-Ubungen

Baue deine Fahigkeiten mit fokussierten Lernpfaden, Probetests und interviewreifem Inhalt aus.

WithoutBook vereint themenbezogene Interviewfragen, Online-Ubungstests, Tutorials und Vergleichsleitfaden in einem responsiven Lernbereich.

Interview vorbereiten

Probeprufungen

Als Startseite festlegen

Diese Seite als Lesezeichen speichern

E-Mail-Adresse abonnieren
WithoutBook LIVE Mock Interviews
The Best LIVE Mock Interview - You should go through before interview

Freshers / Beginner level questions & answers

Ques 1. What is JavaMail?

Java Mail is an API that is used to receive and send emails between applications. To send the emails, the protocols, SMPT, POP AND IMAP are used. The messages sending and receiving is done by creating a framework using set of abstract classes in the API. The framework allows the application to create customized cross-platform mail application by having basic knowledge of e-mail. There are methods and classes that are used to access mail folders, message downloading and sending messages along with attachments feature.

Potential advantages include - Java mail is used to create personal mail filter, simple mailing lists and personal mail applications. Java mail also includes the capabilities to add the emailing process to an enterprise application or even to create a full-fledged e-mail client. Many companies in the industry have written new e-mail clients using Java Mail.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 2. Explain POP, SMTP and IMAP protocols.

POP: The Post Office Protocol is an application-level protocol within an intranet which are used by the local e-mail clients to send and retrieve e-mails from a remote server those are connected using TCP/IP. POP is one of the most prevalent protocol fro the usage of e-mail. The POP and its procedures support the end-users with dial-up network connections.

POP allows the users to retrieve e-mail when connected and later allows viewing and altering the retrieved messages. This is done with a promising feature – without staying connected. The process of using emails over POP is to connect, retrieve the messages, and store them on the user’s PC as a new message. Later these messages can be ‘deleted from the server’ and disconnecting the server – makes POP a distinguished protocol.

SMTP: Simple Mail Transfer Protocol, for sending email between ‘servers’. Most of the emailing systems implement the messages over internet use SMTP. The message sent from one server to another server, and then the message can be retrieved by an email client. The client uses either POP or IMAP. In addition to this process, SMTP is also generally used for message sending and retrieval from a mail client to a mail server. This is the reason why the need of POP or IMAP server and the SMTP servers at the time of configuring the email application.

IMAP: Short for Internet Message Access Protocol. This is another most prevalent protocol of internet standard for email usage apart from POP. Usually all the modern email server and client supports these two protocols for transmitting the email messages. For Example Gmail server uses to transmit the message to a client such as Mozilla Thunderbird and Microsoft Outlook.

IMAP is an application layer protocol over internet that is operating from port no. 143 that allows the accessibility of email on a remote server by a client. IMAP supports the online and offline (disconnected) modes of operations. Usually the email clients using IMAP utilizes the facility of leaving the message on the server. The message lasts until the user explicitly deletes them. IMAP also allows multiple clients to have the accessibility of the same mailbox.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 3. Explain the use of MIME within message makeup.

MIME message includes the picture stored as file in GIF format and the GIF format uses 8-bit format. The RFC 822 uses ASCII text format. The messages in the form of ASCII text format is to be encoded. To display the image in the recipient system, the information abut the encoding mechanism is used. The message is to be made up in the recipient’s application. The following snippet is used to identify the content is a GIF file which is to be encoded using the standard “base64Algorithm. This is to be treated as an attachment by the client who uses the email.

Content-Type: image/gif;
name="waterfall.gif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="waterfall.gif"
[Author the encoded content here]
..

The accomplishment of this is done by simplifying and rebuilding of complex files. These files are encoded and transported as a body of the message or a series of messages which are the parts of the file.

A message format is defined by the MIME that allows the following:

Non ASCII character textual message bodies.
Non textual message bodies
Message bodies that are multipart
Non ASCII character textual header information

Code Example:
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(args[0])};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject("Hello");
msg.setSentDate(new Date());
msg.setText("Mail Message");

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 4. Explain the structure of Javamail API

The JavaMail API has classes such as Message, Store and Transport. The API can be used to subclass for providing new protocols and some additional functionality when needed. The concrete subclasses of this API are MimeMessage and MimeBodyPart which are implemented widely by the internet mail protocols. The supporting protocols for Javamail API are IMAP4, POP3 and SMTP.

The Java mail architectural components include the following:

Abstract Layer: This layer declares the classes, interfaces and abstract methods that are intended for supporting the mail functions which all mailing systems supports.

Intranet Implementation Layer: The implementation of MIME internet standards and part of the abstract layer comprises this layer.

Java Bean Activation Framework: The encapsulation of message data and handling the data interacting commands is used by the Javabean Activation Framework.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 5. Discuss about JavaMail.

1) JavaMail is a set of abstract classes that create a framework for sending, receiving and handling e-mail.
2) The package that Sun provides contains implementations of IMAP and SMTP, which allow sending and receiving mail.
3) The framework eases the creation of cross-platform mail application without an in-depth knowledge of e-mail.
4) There are methods and classes that allow access to mail folders, download messages, send messages with attachments and filter mail.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 6. What are the advantages of JavaMail?

Potential advantages include - Java mail is used to create personal mail filter, simple mailing lists and personal mail applications. Java mail also includes the capabilities to add the emailing process to an enterprise application or even to create a full-fledged e-mail client. Many companies in the industry have written new e-mail clients using Java Mail.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 7. Sample code to send email from you java application.

You can use the JavaMail API to send emails from your Java application. Though the JavaMail API allows you to do many things including the ability to retrieve and read the emails or sending emails etc, this sample java program demonstrates how to send email from your Java application. Remember to change the email host (String host) to your email server host, otherwise it won't work.

import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class SimpleSendEmail {
public static void main(String[] args) {
// Collect the necessary information to send a simple message
// Make sure to replace the values for host, to, and from with
// valid information.
// host - must be a valid smtp server that you currently have
// access to.
// to - whoever is going to get your email
// from - whoever you want to be. Just remember that many smtp
// servers will validate the domain of the from address
// before allowing the mail to be sent.
String host = "server.myhost.com";
String to = "YourFriend@someemail.com";
String from = "Me@myhost.com";
String subject = "My First Email";
String messageText = "I am sending a message using the"
+ " JavaMail API.n"
+ "Here type your message.";
boolean sessionDebug = false;
// Create some properties and get the default Session.
Properties props = System.getProperties();
props.put("mail.host", host);
props.put("mail.transport.protocol", "smtp");
Session session = Session.getDefaultInstance(props, null);
// Set debug on the Session so we can see what is going on
// Passing false will not echo debug info, and passing true
// will.
session.setDebug(sessionDebug);
try {
// Instantiate a new MimeMessage and fill it with the
// required information.
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject(subject);
msg.setSentDate(new Date());
msg.setText(messageText);
// Hand the message to the default transport service
// for delivery.
Transport.send(msg);
}
catch (MessagingException mex) {
mex.printStackTrace();
}
}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 8. Sample code to send email using GMAIL SMTP.

Here are two examples to show you how to use JavaMail API method to send an email via Gmail SMTP server, using both TLS and SSL connection.

To run this example, you need two dependency libraries – javaee.jar and mail.jar, both are bundle in JavaEE SDK.

Outgoing Mail (SMTP) Server
requires TLS or SSL: smtp.gmail.com (use authentication)
Use Authentication: Yes
Port for TLS/STARTTLS: 587
Port for SSL: 465

GMail SMTP detail here – http://mail.google.com/support/bin/answer.py?hl=en&answer=13287

Send an Email via Gmail SMTP server using TLS connection:

package com.withoutbook.common;

import java.util.Properties;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

public class SendMailTLS {

public static void main(String[] args) {

final String username = "username@gmail.com";
final String password = "password";

Properties props = new Properties();
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.port", "587");

Session session = Session.getInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
});

try {

Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("from-email@gmail.com"));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse("to-email@gmail.com"));
message.setSubject("Testing Subject");
message.setText("Dear Mail Crawler,"
+ "nn No spam to my email, please!");

Transport.send(message);

System.out.println("Done");

} catch (MessagingException e) {
throw new RuntimeException(e);
}
}
}



Send an Email via Gmail SMTP server using SSL connection:

package com.withoutbook.common;

import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

public class SendMailSSL {
public static void main(String[] args) {
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");

Session session = Session.getDefaultInstance(props,
new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("username","password");
}
});

try {

Message message = new MimeMessage(session);
message.setFrom(new InternetAddress("from@no-spam.com"));
message.setRecipients(Message.RecipientType.TO,
InternetAddress.parse("to@no-spam.com"));
message.setSubject("Testing Subject");
message.setText("Dear Mail Crawler," +
"nn No spam to my email, please!");

Transport.send(message);

System.out.println("Done");

} catch (MessagingException e) {
throw new RuntimeException(e);
}
}
}


Exception like:

java.net.UnknownHostException: smtp.gmail.com
Some hit the UnknownHostException: smtp.gmail.com, try ping smtp.gmail.com and make sure you got a response (able to access). Often times, your connection may block by your firewall or proxy behind.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 9. What is Session in JavaMail api?

Session is the top-level entry class representing mail session. It uses java.util.Properties object to get information about mail server, username, password etc. This class has a private constructor and you can get session objects through getInstance() and getDefaultInstance() methods. getDefaultInstance() method provides default Session object which takes Properties and Authenticator objects as arguments.

Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);


Or create a unique session by getInstance() method…

Properties props = new Properties();
Session session = Session.getInstance(props, null);

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 10. What is Message in JavaMail api?

After creating session object, create message to send by using Message class. Because of message class is abstract class so we will use subclass javax.mail.internet.MimeMessage.

MimeMessage message = new MimeMessage(session)
// set the content of message by setContent() method
message.setContent(“www.roseindia.net”, "text/plain");

We can also use setText() method to set the content.

Message.setText("www.roseindia.net");

To create subject line of sending message use setSubject() method.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 11. What is Address in JavaMail api?

Now we will define address, Address class is also an abstract class so we will use here class javax.mail.internet.InternetAddress.

Address address = new InternetAddress("arindam@withoutbook.com");

To display a name next to the Email Address use one more argument for name.

Address address = new InternetAddress("arindam@withoutbook.com", "Arindam");

After creating address connect with message by two ways:


1: By setFrom()method: message.setFrom(address);
1: By setReplyTo()method: When want to send reply

to more addresses.
Address address[] = ...;
Message.setReplyTo(address[]);

To identify the recipient, add the recipients by using addRecipient() method….

message.addRecipient(type, address);

Address types are of three types:
1. Message.RecipientType.TO: primary recipient
2. Message.RecipientType.CC: carbon copy
3. Message.RecipientType.BCC: blind carbon copy

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 12. What is Authenticator in JavaMail api?

The JavaMail Authenticator is found in the javax.mail package, and used as an authenticator to access protected resources by prompting the user for username and password.

Properties props = new Properties();
Authenticator auth = new MyAuthenticator();
Session session = Session.getDefaultInstance(props, auth);

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 13. What is Transport in JavaMail api?

This is final part of sending Email, it is an abstract class. Default version of this class can be used by calling static send() method.

Transport.send(message);

Or can create a specific instance from the session for defined protocol.

message.saveChanges();
Transport transport = session.getTransport("smtp");
transport.connect(host, username, password);
transport.sendMessage(message, message.getAllRecipients());
transport.close();

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 14. What is Store and Folder in JavaMail api?

After getting the session you connect to javax.mail.Store class with Authenticator or host, port, user and password information. Store object that implements the specified protocol can be created by by passing the protocol information to the getStore() method of the session object.

Store store = session.getStore("pop3");
store.connect(host, username, password);

After connecting to store you need to get a folder that holds messages. For POP3, the only folder available is the INBOX but with IMAP, you can have other folders available. For this you can use javax.mail.Folder class.

Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_ONLY);
Message message[] = folder.getMessages();

Once you have read messages, you need to close Store and Folder.

folder.close(booleanValue);
store.close();

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 15. Sample code for sending multipart mail using JavaMail.

Multipart is like a container that holds one or more body parts. When u send a multipart mail firstly create a Multipart class object and then create BodyPart class object, set text in BodyPart class object and add all BodyPart class object in Multipart class object and send the message. Class Multipart that we will use in this code is an abstract class. Method used in this program of Multipart class is:

void addBodyPart(BodyPart part);

This method is used to add parts in multipart.


package com.withoutbook.common;

import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;

public class SendMultipartMail {

public static void main(String args[]) throws Exception {

String host = "192.168.10.110";
String from = "test@localhost";
String to = "arindam@localhost";

Properties properties = System.getProperties();
properties.setProperty("mail.smtp.host", host);

Session session = Session.getDefaultInstance(properties);

Message msg = new MimeMessage(session);

msg.setFrom(new InternetAddress(from));
msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
msg.setSubject("MultiPart Mail");

Multipart multipart = new MimeMultipart();

BodyPart part1 = new MimeBodyPart();
part1.setText("This is multipart mail and you read part1......");

BodyPart part2 = new MimeBodyPart();
part2.setText("This is multipart mail and you read part2......");

multipart.addBodyPart(part1);
multipart.addBodyPart(part2);

msg.setContent(multipart);

Transport.send(msg);
System.out.println("Message send....");
}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Intermediate / 1 to 5 years experienced level questions & answers

Ques 16. Explain the structure of Javamail API

The JavaMail API has classes such as Message, Store and Transport. The API can be used to subclass for providing new protocols and some additional functionality when needed. The concrete subclasses of this API are MimeMessage and MimeBodyPart which are implemented widely by the internet mail protocols. The supporting protocols for Javamail API are IMAP4, POP3 and SMTP.

The Java mail architectural components include the following:

Abstract Layer: This layer declares the classes, interfaces and abstract methods that are intended for supporting the mail functions which all mailing systems supports.

Intranet Implementation Layer: The implementation of MIME internet standards and part of the abstract layer comprises this layer.

Java Bean Activation Framework: The encapsulation of message data and handling the data interacting commands is used by the Javabean Activation Framework.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Experienced / Expert level questions & answers

Ques 17. Explain POP, SMTP and IMAP protocols.

POP: The Post Office Protocol is an application-level protocol within an intranet which are used by the local e-mail clients to send and retrieve e-mails from a remote server those are connected using TCP/IP. POP is one of the most prevalent protocol fro the usage of e-mail. The POP and its procedures support the end-users with dial-up network connections.

POP allows the users to retrieve e-mail when connected and later allows viewing and altering the retrieved messages. This is done with a promising feature – without staying connected. The process of using emails over POP is to connect, retrieve the messages, and store them on the user’s PC as a new message. Later these messages can be ‘deleted from the server’ and disconnecting the server – makes POP a distinguished protocol.

SMTP: Simple Mail Transfer Protocol, for sending email between ‘servers’. Most of the emailing systems implement the messages over internet use SMTP. The message sent from one server to another server, and then the message can be retrieved by an email client. The client uses either POP or IMAP. In addition to this process, SMTP is also generally used for message sending and retrieval from a mail client to a mail server. This is the reason why the need of POP or IMAP server and the SMTP servers at the time of configuring the email application.

IMAP: Short for Internet Message Access Protocol. This is another most prevalent protocol of internet standard for email usage apart from POP. Usually all the modern email server and client supports these two protocols for transmitting the email messages. For Example Gmail server uses to transmit the message to a client such as Mozilla Thunderbird and Microsoft Outlook.

IMAP is an application layer protocol over internet that is operating from port no. 143 that allows the accessibility of email on a remote server by a client. IMAP supports the online and offline (disconnected) modes of operations. Usually the email clients using IMAP utilizes the facility of leaving the message on the server. The message lasts until the user explicitly deletes them. IMAP also allows multiple clients to have the accessibility of the same mailbox.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 18. Explain the use of MIME within message makeup.

Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = {new InternetAddress(args[0])};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject("Hello");
msg.setSentDate(new Date());
msg.setText("Mail Message");

This section creates the actual message object and fills in the to, from, subject, date and content. There are also options to set the reply to, content and content type, and other header information. Since this is a MIME - Multipurpose Internet Mail Extensions - message, it need not be plain text.

A DataHandler can be set using setDataHandler() in MimeMessage to handle nontext parts. This is a simple one-part text message, the setText() can be used.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 19. Sample code for java mail api with attachment.

String SMTP_HOST_NAME = "mail.domain.com";
String SMTP_PORT = "25";

String SMTP_FROM_ADDRESS="xxx@domain.com";
String SMTP_TO_ADDRESS="yyy@domain.com";
String subject="Textmsg";
String fileAttachment = "C:\filename.pdf";

Properties props = new Properties();

props.put("mail.smtp.host", SMTP_HOST_NAME);
props.put("mail.smtp.auth", "true");
props.put("mail.debug", "true");
props.put("mail.smtp.port", SMTP_PORT );
Session session = Session.getInstance(props,new javax.mail.Authenticator()
{protected javax.mail.PasswordAuthentication
getPasswordAuthentication()
{return new javax.mail.PasswordAuthentication("xxxx@domain.com","password");}});
try{

Message msg = new MimeMessage(session);

msg.setFrom(new InternetAddress(SMTP_FROM_ADDRESS));
// create the message part
MimeBodyPart messageBodyPart =
new MimeBodyPart();
//fill message
messageBodyPart.setText("Test mail one");
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
messageBodyPart = new MimeBodyPart();
DataSource source =
new FileDataSource(fileAttachment);
messageBodyPart.setDataHandler(
new DataHandler(source));
messageBodyPart.setFileName(fileAttachment);
multipart.addBodyPart(messageBodyPart);
// Put parts in message
msg.setContent(multipart);


msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(SMTP_TO_ADDRESS));

msg.setSubject(subject);
// msg.setContent(content, "text/plain");

Transport.send(msg);
System.out.println("success....................................");
}
catch(Exception e){
e.printStackTrace();
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 20. Sample code for Reading message using Java Mail.

The Folder class declares methods that fetch, append, copy and delete messages. These are some of the methods used in the program.

System.getProperties() this method get the system properties.
Session.getDefaultInstance(properties) this method get the default Session object.
session.getStore("pop3") this method get a Store object that implements the pop3 protocol.
store.connect(host, user, password) Connect to the current host using the specified username and password.
store.getFolder("inbox") create a Folder object of the inbox.
folder.open(Folder.READ_ONLY) open the Folder.
folder.getMessages() get all messages for the folder.


import java.io.*;
import java.util.*;
import javax.mail.*;

public class ReadMail {

public static void main(String args[]) throws Exception {

String host = "192.168.10.110";
String user = "test";
String password = "test";

// Get system properties
Properties properties = System.getProperties();

// Get the default Session object.
Session session = Session.getDefaultInstance(properties);

// Get a Store object that implements the specified protocol.
Store store = session.getStore("pop3");

//Connect to the current host using the specified username and password.
store.connect(host, user, password);

//Create a Folder object corresponding to the given name.
Folder folder = store.getFolder("inbox");

// Open the Folder.
folder.open(Folder.READ_ONLY);

Message[] message = folder.getMessages();

// Display message.
for (int i = 0; i < message.length; i++) {

System.out.println("------------ Message " + (i + 1) + " ------------");

System.out.println("SentDate : " + message[i].getSentDate());
System.out.println("From : " + message[i].getFrom()[0]);
System.out.println("Subject : " + message[i].getSubject());
System.out.print("Message : ");

InputStream stream = message[i].getInputStream();
while (stream.available() != 0) {
System.out.print((char) stream.read());
}
System.out.println();
}

folder.close(true);
store.close();
}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 21. Sample code for Reading Multipart mail using JavaMail.

These days Multipart mail is used to compose emails with attachment. In the email you can attach images, zip files, xls, doc etc.. It allows you to create nicely design emails.

Java Mail API also provides classes to create, send and read the Multipart message. If you have given a task to create emails with attachment in Java technologies, then you can use the Java Mail api to accomplish your task.

Using the Multipart Class

Following code snippet shows how you can use the Multipart class. You have to create the object of Multipart class and then you can get the body part and compose or read your email.

Multipart multipart = (Multipart) msg[i].getContent();After that create BodyPart object BodyPart bodyPart = multipart.getBodyPart(x);

And then read bodyPart content using getContent() method.


package com.withoutbook.common;

import java.util.*;
import javax.activation.DataHandler;
import javax.mail.*;
import javax.mail.internet.*;

public class ReadMultipartMail {

public static void main(String args[]) throws Exception {

String host = "192.168.10.110";
String username = "arindam";
String passwoed = "arindam";

Properties properties = System.getProperties();
Session session = Session.getDefaultInstance(properties);

Store store = session.getStore("pop3");
store.connect(host, username, passwoed);

Folder folder = store.getFolder("inbox");

if (!folder.exists()) {
System.out.println("No INBOX...");
System.exit(0);
}
folder.open(Folder.READ_WRITE);
Message[] msg = folder.getMessages();

for (int i = 0; i < msg.length; i++) {
System.out.println("------------ Message " + (i + 1) + " ------------");
String from = InternetAddress.toString(msg[i].getFrom());
if (from != null) {
System.out.println("From: " + from);
}

String replyTo = InternetAddress.toString(
msg[i].getReplyTo());
if (replyTo != null) {
System.out.println("Reply-to: " + replyTo);
}
String to = InternetAddress.toString(
msg[i].getRecipients(Message.RecipientType.TO));
if (to != null) {
System.out.println("To: " + to);
}

String subject = msg[i].getSubject();
if (subject != null) {
System.out.println("Subject: " + subject);
}
Date sent = msg[i].getSentDate();
if (sent != null) {
System.out.println("Sent: " + sent);
}

System.out.println();
System.out.println("Message : ");

Multipart multipart = (Multipart) msg[i].getContent();

for (int x = 0; x < multipart.getCount(); x++) {
BodyPart bodyPart = multipart.getBodyPart(x);

String disposition = bodyPart.getDisposition();

if (disposition != null && (disposition.equals(BodyPart.ATTACHMENT))) {
System.out.println("Mail have some attachment : ");

DataHandler handler = bodyPart.getDataHandler();
System.out.println("file name : " + handler.getName());
} else {
System.out.println(bodyPart.getContent());
}
}
System.out.println();
}
folder.close(true);
store.close();
}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 22. Sample code for reading attachment message using JavaMail.

Java Mail API provides classes to send multiple Mime body part with one Mime Message. MulipltMimeBody parts can be text, file or image. All message are stored in Folder objects. folders can contain folders or messages. The Folder class declares methods that fetch, append, copy and delete messages, and message contain Attachment.


package com.withoutbook.common;

import java.io.*;
import java.util.*;
import javax.mail.*;

public class ReadAttachment {

public static void main(String args[]) throws Exception {
String host = "192.168.10.110";
String user = "arindam";
String password = "arindam";

// Get system properties
Properties properties = System.getProperties();

// Get the default Session object.
Session session = Session.getDefaultInstance(properties);

// Get a Store object that implements the specified protocol.
Store store = session.getStore("pop3");

//Connect to the current host using the specified username and password.
store.connect(host, user, password);

//Create a Folder object corresponding to the given name.
Folder folder = store.getFolder("inbox");

// Open the Folder.
folder.open(Folder.READ_WRITE);

Message[] message = folder.getMessages();


for (int a = 0; a < message.length; a++) {
System.out.println("-------------" + (a + 1) + "-----------");
System.out.println(message[a].getSentDate());

Multipart multipart = (Multipart) message[a].getContent();
//System.out.println(multipart.getCount());

for (int i = 0; i < multipart.getCount(); i++) {
//System.out.println(i);
//System.out.println(multipart.getContentType());
BodyPart bodyPart = multipart.getBodyPart(i);
InputStream stream = bodyPart.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(stream));

while (br.ready()) {
System.out.println(br.readLine());
}
System.out.println();
}
System.out.println();
}
folder.close(true);
store.close();
}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 23. Sample code for replying to messages using JavaMail.

The Message class have a reply() method to configure a new Message with the proper recipient and subject, adding "Re: " if not already there. This does not add any content to the message, reply() method have a boolean parameter indicating whether to reply to only the sender (false) or reply to all (true).

MimeMessage reply = (MimeMessage)message.reply(false);reply.setFrom(new InternetAddress("president@whitehouse.gov"));reply.setText("Thanks");Transport.send(reply);

To configure the reply-to address when sending a message, use the setReplyTo() method.


package com.withoutbook.common;

import java.io.*;
import java.util.*;

import javax.mail.*;
import javax.mail.internet.*;

public class ReplyMail {

public static void main(String args[]) throws Exception {

Date date = null;
Properties properties = System.getProperties();
properties.setProperty("mail.smtp.host", "192.168.10.110");

Session session = Session.getDefaultInstance(properties);

Store store = session.getStore("pop3");
store.connect("192.168.10.110", "arindam", "arindam");

Folder folder = store.getFolder("inbox");
if (!folder.exists()) {
System.out.println("inbox not found");
System.exit(0);
}
folder.open(Folder.READ_ONLY);

BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

Message[] message = folder.getMessages();
if (message.length != 0) {
System.out.println("no. From ttSubject ttDate");
for (int i = 0, n = message.length; i < n; i++) {
date = message[i].getSentDate();

System.out.println(" " + (i + 1) + ": " + message[i].getFrom()[0] + "t" +
message[i].getSubject() + " t" + date.getDate() + "/" +
date.getMonth() + "/" + (date.getYear() + 1900));
System.out.print("Do you want to reply [y/n] : ");
String ans = reader.readLine();
if ("Y".equals(ans) || "y".equals(ans)) {

// Create a reply message
MimeMessage reply = (MimeMessage) message[i].reply(false);

// Set the from field
reply.setFrom(message[i].getFrom()[0]);

// Create the reply content
// Create the reply content, copying over the original if text
MimeMessage orig = (MimeMessage) message[i];
StringBuffer buffer = new StringBuffer("Thanksnn");
if (orig.isMimeType("text/plain")) {
String content = (String) orig.getContent();
StringReader contentReader = new StringReader(content);
BufferedReader br = new BufferedReader(contentReader);
String contentLine;
while ((contentLine = br.readLine()) != null) {
buffer.append("> ");
buffer.append(contentLine);
buffer.append("rn");
}
}
// Set the content
reply.setText(buffer.toString());

// Send the message
Transport.send(reply);

} else if ("n".equals(ans)) {
break;
}
}

} else {
System.out.println("There is no msg....");
}

}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 24. Sample code for Forwarding Messages using JavaMail.

If u want forward a message to another user firstly get all header field and get message content then send its for another user.
Java code given below gives the functionality to forward same message to the next email address. With this code user can change Subject line and can edit the message content that is going to forward.


package com.withoutbook.common;

import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;

public class ForwardMail {

public static void main(String args[]) throws Exception {
String host = "192.168.10.110";
String user = "arindam";
String password = "arindam";

// Get system properties
Properties properties = System.getProperties();
properties.setProperty("mail.smtp.host", "192.168.10.110");

// Get the default Session object.
Session session = Session.getDefaultInstance(properties);

// Get a Store object that implements the specified protocol.
Store store = session.getStore("pop3");

//Connect to the current host using the specified username and password.
store.connect(host, user, password);

//Create a Folder object corresponding to the given name.
Folder folder = store.getFolder("inbox");

// Open the Folder.
folder.open(Folder.READ_ONLY);

Message message = folder.getMessage(1);

// Here's the big change...
String from = InternetAddress.toString(message.getFrom());
if (from != null) {
System.out.println("From: " + from);
}
String replyTo = InternetAddress.toString(
message.getReplyTo());
if (replyTo != null) {
System.out.println("Reply-to: " + replyTo);
}
String to = InternetAddress.toString(
message.getRecipients(Message.RecipientType.TO));
if (to != null) {
System.out.println("To: " + to);
}

String subject = message.getSubject();
if (subject != null) {
System.out.println("Subject: " + subject);
}
Date sent = message.getSentDate();
if (sent != null) {
System.out.println("Sent: " + sent);
}
System.out.println(message.getContent());

// Create the message to forward
Message forward = new MimeMessage(session);

// Fill in header
forward.setSubject("Fwd: " + message.getSubject());
forward.setFrom(new InternetAddress(from));
forward.addRecipient(Message.RecipientType.TO,
new InternetAddress(to));

// Create your new message part
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText("Oiginal message:nn");

// Create a multi-part to combine the parts
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);

// Create and fill part for the forwarded content
messageBodyPart = new MimeBodyPart();
messageBodyPart.setDataHandler(message.getDataHandler());

// Add part to multi part
multipart.addBodyPart(messageBodyPart);

// Associate multi-part with message
forward.setContent(multipart);

// Send message
Transport.send(forward);

System.out.println("msg forward ....");
}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 25. How to show all header information of message using Java Mail api?

We will use method given below to retrieve all header information, this method returns Enumerations type.

public Enumeration getAllHeaders();


package com.withoutbook.common;

import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;

public class AllHeaderClient {

public static void main(String[] args) throws Exception {
String host = "192.168.10.110";
String user = "arindam";
String password = "arindam";

// Get system properties
Properties properties = System.getProperties();

// Get the default Session object.
Session session = Session.getDefaultInstance(properties);

// Get a Store object that implements the specified protocol.
Store store = session.getStore("pop3");

//Connect to the current host using the specified username and password.
store.connect(host, user, password);

//Create a Folder object corresponding to the given name.
Folder folder = store.getFolder("inbox");

// Open the Folder.
folder.open(Folder.READ_ONLY);

Message[] messages = folder.getMessages();
for (int i = 0; i < messages.length; i++) {
System.out.println("------------ Message " + (i + 1) + " ------------");
// Here's the difference...
Enumeration headers = messages[i].getAllHeaders();
while (headers.hasMoreElements()) {
Header h = (Header) headers.nextElement();
System.out.println(h.getName() + ": " + h.getValue());
}
System.out.println();
}
}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 26. Sample code for deleting messages using JavaMail.

If you want to delete any message then set the message flag delete. There are different types of flags, some system-defined and some user-defined.

* Flags.Flag.ANSWERED* Flags.Flag.DELETED* Flags.Flag.DRAFT* Flags.Flag.FLAGGED* Flags.Flag.RECENT* Flags.Flag.SEEN* Flags.Flag.USERTo delete messages, you set the message's DELETED flag:message.setFlag(Flags.Flag.DELETED, true);Open up the folder in READ_WRITE mode first though:folder.open(Folder.READ_WRITE);Then, when you are done processing all messages, close the folder, passing in a true value to expunge the deleted messages.

folder.close(true);


package com.withoutbook.common;

import com.sun.mail.imap.protocol.FLAGS;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Date;
import java.util.Properties;

import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Store;
import javax.mail.internet.InternetAddress;

public class DeleteMail {

public static void main(String args[]) throws Exception {

Properties properties = System.getProperties();

Session session = Session.getDefaultInstance(properties);
Store store = session.getStore("pop3");

store.connect("192.168.10.110", "arindam", "arindam");

Folder folder = store.getFolder("inbox");

if (!folder.exists()) {
System.out.println("inbox not found");
System.exit(0);
}

folder.open(Folder.READ_WRITE);

Message[] msg = folder.getMessages();
//System.out.println((messages.length+1)+" message found");
for (int i = 0; i < msg.length; i++) {
System.out.println("--------- " + (i + 1) + "------------");
String from = InternetAddress.toString(msg[i].getFrom());
if (from != null) {
System.out.println("From: " + from);
}

String replyTo = InternetAddress.toString(
msg[i].getReplyTo());
if (replyTo != null) {
System.out.println("Reply-to: " + replyTo);
}
String to = InternetAddress.toString(
msg[i].getRecipients(Message.RecipientType.TO));
if (to != null) {
System.out.println("To: " + to);
}

String subject = msg[i].getSubject();
if (subject != null) {
System.out.println("Subject: " + subject);
}
Date sent = msg[i].getSentDate();
if (sent != null) {
System.out.println("Sent: " + sent);
}
System.out.println("Message : ");
System.out.println(msg[i].getContent());

}
System.out.println("Enter message no to delete :");

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String no = br.readLine();
msg[Integer.parseInt(no) - 1].setFlag(FLAGS.Flag.DELETED, true);
System.out.println("Msg Delete .....");

folder.close(true);
store.close();
}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 27. Sample code to send HTML mail with images using JavaMail.

A client create new message by using Message subclass. It sets attributes like recipient address and the subject, and inserts the content into the Message object, and inserts the content into the Message object. Finally, it sends the Message by invoking the Transport.send() method.

The Transport class models the transport agent that routes a message to its destination addresses. This class provides methods that send a message to a list of recipients. Invoking the Transport.send() method with a Message object identifies the appropriate transport based on its destination addresses.


package com.withoutbook.common;

import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;

public class HTMLMail {

public static void main(String args[]) throws Exception {

String host = "192.168.10.110";
String from = "arindam@localhost";
String to = "arindam@localhost";

// Get system properties
Properties properties = System.getProperties();

// Setup mail server
properties.setProperty("mail.smtp.host", host);

// Get the default Session object.
Session session = Session.getDefaultInstance(properties);

// Create a default MimeMessage object.
MimeMessage message = new MimeMessage(session);

// Set the RFC 822 "From" header field using the
// value of the InternetAddress.getLocalAddress method.
message.setFrom(new InternetAddress(from));

// Add the given addresses to the specified recipient type.
message.addRecipient(Message.RecipientType.TO,
new InternetAddress(to));


// Set the "Subject" header field.
message.setSubject("hi..!");


String htmlText = "

Hello

" +
"";

// Sets the given String as this part's content,
// with a MIME type of "text/plain".
message.setContent(htmlText, "text/html");

// Send message
Transport.send(message);

System.out.println("Message Send.....");
}
}

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Related interview subjects

Java Applet interviewfragen und antworten - Total 29 questions
Java Mail interviewfragen und antworten - Total 27 questions
Google Gson interviewfragen und antworten - Total 8 questions
Java 21 interviewfragen und antworten - Total 21 questions
RMI interviewfragen und antworten - Total 31 questions
Java Support interviewfragen und antworten - Total 30 questions
Apache Camel interviewfragen und antworten - Total 20 questions
Struts interviewfragen und antworten - Total 84 questions
JAXB interviewfragen und antworten - Total 18 questions
J2EE interviewfragen und antworten - Total 25 questions
JUnit interviewfragen und antworten - Total 24 questions
Java OOPs interviewfragen und antworten - Total 30 questions
Apache Tapestry interviewfragen und antworten - Total 9 questions
JSP interviewfragen und antworten - Total 49 questions
Java Concurrency interviewfragen und antworten - Total 30 questions
JDBC interviewfragen und antworten - Total 27 questions
Java 11 interviewfragen und antworten - Total 24 questions
Java Garbage Collection interviewfragen und antworten - Total 30 questions
Java Swing interviewfragen und antworten - Total 27 questions
Java Design Patterns interviewfragen und antworten - Total 15 questions
Spring Framework interviewfragen und antworten - Total 53 questions
JPA interviewfragen und antworten - Total 41 questions
JSF interviewfragen und antworten - Total 24 questions
Java 8 interviewfragen und antworten - Total 30 questions
Hibernate interviewfragen und antworten - Total 52 questions
JMS interviewfragen und antworten - Total 64 questions
Java 17 interviewfragen und antworten - Total 20 questions
Java Beans interviewfragen und antworten - Total 57 questions
Java Exception Handling interviewfragen und antworten - Total 30 questions
Spring Boot interviewfragen und antworten - Total 50 questions
Servlets interviewfragen und antworten - Total 34 questions
Kotlin interviewfragen und antworten - Total 30 questions
EJB interviewfragen und antworten - Total 80 questions
Java 15 interviewfragen und antworten - Total 16 questions
Java Multithreading interviewfragen und antworten - Total 30 questions
Apache Wicket interviewfragen und antworten - Total 26 questions
Core Java interviewfragen und antworten - Total 306 questions
JBoss interviewfragen und antworten - Total 14 questions
Log4j interviewfragen und antworten - Total 35 questions

All interview subjects

C# interviewfragen und antworten - Total 41 questions
LINQ interviewfragen und antworten - Total 20 questions
ASP .NET interviewfragen und antworten - Total 31 questions
Microsoft .NET interviewfragen und antworten - Total 60 questions
ASP interviewfragen und antworten - Total 82 questions
IBM Watson interviewfragen und antworten - Total 30 questions
Perplexity AI interviewfragen und antworten - Total 40 questions
ChatGPT interviewfragen und antworten - Total 20 questions
NLP interviewfragen und antworten - Total 30 questions
AI Agents (Agentic AI) interviewfragen und antworten - Total 50 questions
OpenCV interviewfragen und antworten - Total 36 questions
Amazon SageMaker interviewfragen und antworten - Total 30 questions
TensorFlow interviewfragen und antworten - Total 30 questions
Hugging Face interviewfragen und antworten - Total 30 questions
Gemini AI interviewfragen und antworten - Total 50 questions
Artificial Intelligence (AI) interviewfragen und antworten - Total 47 questions
Oracle AI Agents interviewfragen und antworten - Total 50 questions
Machine Learning interviewfragen und antworten - Total 30 questions
Google Cloud AI interviewfragen und antworten - Total 30 questions
Scala interviewfragen und antworten - Total 48 questions
Swift interviewfragen und antworten - Total 49 questions
Golang interviewfragen und antworten - Total 30 questions
Embedded C interviewfragen und antworten - Total 30 questions
VBA interviewfragen und antworten - Total 30 questions
C++ interviewfragen und antworten - Total 142 questions
COBOL interviewfragen und antworten - Total 50 questions
R Language interviewfragen und antworten - Total 30 questions
Python Coding interviewfragen und antworten - Total 20 questions
CCNA interviewfragen und antworten - Total 40 questions
Oracle Cloud Infrastructure (OCI) interviewfragen und antworten - Total 100 questions
AWS interviewfragen und antworten - Total 87 questions
Azure Data Factory interviewfragen und antworten - Total 30 questions
Microsoft Azure interviewfragen und antworten - Total 35 questions
OpenStack interviewfragen und antworten - Total 30 questions
ServiceNow interviewfragen und antworten - Total 30 questions
Snowflake interviewfragen und antworten - Total 30 questions
Oracle APEX interviewfragen und antworten - Total 23 questions
PDPA interviewfragen und antworten - Total 20 questions
OSHA interviewfragen und antworten - Total 20 questions
HIPPA interviewfragen und antworten - Total 20 questions
PHIPA interviewfragen und antworten - Total 20 questions
FERPA interviewfragen und antworten - Total 20 questions
DPDP interviewfragen und antworten - Total 30 questions
PIPEDA interviewfragen und antworten - Total 20 questions
CCPA interviewfragen und antworten - Total 20 questions
GDPR interviewfragen und antworten - Total 30 questions
HITRUST interviewfragen und antworten - Total 20 questions
LGPD interviewfragen und antworten - Total 20 questions
Data Structures interviewfragen und antworten - Total 49 questions
Computer Networking interviewfragen und antworten - Total 65 questions
Microsoft Excel interviewfragen und antworten - Total 37 questions
Computer Basics interviewfragen und antworten - Total 62 questions
Computer Science interviewfragen und antworten - Total 50 questions
MS Word interviewfragen und antworten - Total 50 questions
Operating System interviewfragen und antworten - Total 22 questions
Tips and Tricks interviewfragen und antworten - Total 30 questions
PoowerPoint interviewfragen und antworten - Total 50 questions
Pandas interviewfragen und antworten - Total 30 questions
Deep Learning interviewfragen und antworten - Total 29 questions
PySpark interviewfragen und antworten - Total 30 questions
Flask interviewfragen und antworten - Total 40 questions
PyTorch interviewfragen und antworten - Total 25 questions
Data Science interviewfragen und antworten - Total 23 questions
SciPy interviewfragen und antworten - Total 30 questions
Generative AI interviewfragen und antworten - Total 30 questions
NumPy interviewfragen und antworten - Total 30 questions
Python interviewfragen und antworten - Total 106 questions
Python Pandas interviewfragen und antworten - Total 48 questions
Python Matplotlib interviewfragen und antworten - Total 30 questions
Django interviewfragen und antworten - Total 50 questions
MariaDB interviewfragen und antworten - Total 40 questions
DBMS interviewfragen und antworten - Total 73 questions
Apache Hive interviewfragen und antworten - Total 30 questions
SSIS interviewfragen und antworten - Total 30 questions
PostgreSQL interviewfragen und antworten - Total 30 questions
Teradata interviewfragen und antworten - Total 20 questions
SQL Query interviewfragen und antworten - Total 70 questions
SQLite interviewfragen und antworten - Total 53 questions
Cassandra interviewfragen und antworten - Total 25 questions
Neo4j interviewfragen und antworten - Total 44 questions
MSSQL interviewfragen und antworten - Total 50 questions
OrientDB interviewfragen und antworten - Total 46 questions
SQL interviewfragen und antworten - Total 152 questions
Data Warehouse interviewfragen und antworten - Total 20 questions
IBM DB2 interviewfragen und antworten - Total 40 questions
Data Mining interviewfragen und antworten - Total 30 questions
Elasticsearch interviewfragen und antworten - Total 61 questions
Oracle interviewfragen und antworten - Total 34 questions
MongoDB interviewfragen und antworten - Total 27 questions
AWS DynamoDB interviewfragen und antworten - Total 46 questions
Entity Framework interviewfragen und antworten - Total 46 questions
MySQL interviewfragen und antworten - Total 108 questions
Data Modeling interviewfragen und antworten - Total 30 questions
Redis Cache interviewfragen und antworten - Total 20 questions
Data Engineer interviewfragen und antworten - Total 30 questions
Robotics interviewfragen und antworten - Total 28 questions
AutoCAD interviewfragen und antworten - Total 30 questions
Power System interviewfragen und antworten - Total 28 questions
Electrical Engineering interviewfragen und antworten - Total 30 questions
Verilog interviewfragen und antworten - Total 30 questions
Digital Electronics interviewfragen und antworten - Total 38 questions
VLSI interviewfragen und antworten - Total 30 questions
Software Engineering interviewfragen und antworten - Total 27 questions
MATLAB interviewfragen und antworten - Total 25 questions
Civil Engineering interviewfragen und antworten - Total 30 questions
Electrical Machines interviewfragen und antworten - Total 29 questions
Oracle CXUnity interviewfragen und antworten - Total 29 questions
Web Services interviewfragen und antworten - Total 10 questions
Salesforce Lightning interviewfragen und antworten - Total 30 questions
IBM Integration Bus interviewfragen und antworten - Total 30 questions
Power BI interviewfragen und antworten - Total 24 questions
OIC interviewfragen und antworten - Total 30 questions
Web API interviewfragen und antworten - Total 31 questions
Dell Boomi interviewfragen und antworten - Total 30 questions
Salesforce interviewfragen und antworten - Total 57 questions
IBM DataStage interviewfragen und antworten - Total 20 questions
Talend interviewfragen und antworten - Total 34 questions
TIBCO interviewfragen und antworten - Total 30 questions
Informatica interviewfragen und antworten - Total 48 questions
Java Applet interviewfragen und antworten - Total 29 questions
Java Mail interviewfragen und antworten - Total 27 questions
Google Gson interviewfragen und antworten - Total 8 questions
Java 21 interviewfragen und antworten - Total 21 questions
RMI interviewfragen und antworten - Total 31 questions
Java Support interviewfragen und antworten - Total 30 questions
Apache Camel interviewfragen und antworten - Total 20 questions
Struts interviewfragen und antworten - Total 84 questions
JAXB interviewfragen und antworten - Total 18 questions
J2EE interviewfragen und antworten - Total 25 questions
JUnit interviewfragen und antworten - Total 24 questions
Java OOPs interviewfragen und antworten - Total 30 questions
Apache Tapestry interviewfragen und antworten - Total 9 questions
JSP interviewfragen und antworten - Total 49 questions
Java Concurrency interviewfragen und antworten - Total 30 questions
JDBC interviewfragen und antworten - Total 27 questions
Java 11 interviewfragen und antworten - Total 24 questions
Java Garbage Collection interviewfragen und antworten - Total 30 questions
Java Swing interviewfragen und antworten - Total 27 questions
Java Design Patterns interviewfragen und antworten - Total 15 questions
Spring Framework interviewfragen und antworten - Total 53 questions
JPA interviewfragen und antworten - Total 41 questions
JSF interviewfragen und antworten - Total 24 questions
Java 8 interviewfragen und antworten - Total 30 questions
Hibernate interviewfragen und antworten - Total 52 questions
JMS interviewfragen und antworten - Total 64 questions
Java 17 interviewfragen und antworten - Total 20 questions
Java Beans interviewfragen und antworten - Total 57 questions
Java Exception Handling interviewfragen und antworten - Total 30 questions
Spring Boot interviewfragen und antworten - Total 50 questions
Servlets interviewfragen und antworten - Total 34 questions
Kotlin interviewfragen und antworten - Total 30 questions
EJB interviewfragen und antworten - Total 80 questions
Java 15 interviewfragen und antworten - Total 16 questions
Java Multithreading interviewfragen und antworten - Total 30 questions
Apache Wicket interviewfragen und antworten - Total 26 questions
Core Java interviewfragen und antworten - Total 306 questions
JBoss interviewfragen und antworten - Total 14 questions
Log4j interviewfragen und antworten - Total 35 questions
ITIL interviewfragen und antworten - Total 25 questions
Finance interviewfragen und antworten - Total 30 questions
JIRA interviewfragen und antworten - Total 30 questions
SAP MM interviewfragen und antworten - Total 30 questions
SAP ABAP interviewfragen und antworten - Total 24 questions
SCCM interviewfragen und antworten - Total 30 questions
Tally interviewfragen und antworten - Total 30 questions
Pega interviewfragen und antworten - Total 30 questions
Android interviewfragen und antworten - Total 14 questions
Mobile Computing interviewfragen und antworten - Total 20 questions
Xamarin interviewfragen und antworten - Total 31 questions
iOS interviewfragen und antworten - Total 52 questions
Ionic interviewfragen und antworten - Total 32 questions
Kubernetes interviewfragen und antworten - Total 30 questions
Microservices interviewfragen und antworten - Total 30 questions
Apache Kafka interviewfragen und antworten - Total 38 questions
Tableau interviewfragen und antworten - Total 20 questions
Adobe AEM interviewfragen und antworten - Total 50 questions
IAS interviewfragen und antworten - Total 56 questions
PHP OOPs interviewfragen und antworten - Total 30 questions
OOPs interviewfragen und antworten - Total 30 questions
Fashion Designer interviewfragen und antworten - Total 20 questions
Desktop Support interviewfragen und antworten - Total 30 questions
CICS interviewfragen und antworten - Total 30 questions
Yoga Teachers Training interviewfragen und antworten - Total 30 questions
Nursing interviewfragen und antworten - Total 40 questions
Linked List interviewfragen und antworten - Total 15 questions
Dynamic Programming interviewfragen und antworten - Total 30 questions
SharePoint interviewfragen und antworten - Total 28 questions
Behavioral interviewfragen und antworten - Total 29 questions
School Teachers interviewfragen und antworten - Total 25 questions
Language in C interviewfragen und antworten - Total 80 questions
Statistics interviewfragen und antworten - Total 30 questions
Digital Marketing interviewfragen und antworten - Total 40 questions
Apache Spark interviewfragen und antworten - Total 24 questions
Full-Stack Developer interviewfragen und antworten - Total 60 questions
IIS interviewfragen und antworten - Total 30 questions
System Design interviewfragen und antworten - Total 30 questions
VISA interviewfragen und antworten - Total 30 questions
Google Analytics interviewfragen und antworten - Total 30 questions
Cloud Computing interviewfragen und antworten - Total 42 questions
BPO interviewfragen und antworten - Total 48 questions
ANT interviewfragen und antworten - Total 10 questions
SEO interviewfragen und antworten - Total 51 questions
SAS interviewfragen und antworten - Total 24 questions
Control System interviewfragen und antworten - Total 28 questions
Agile Methodology interviewfragen und antworten - Total 30 questions
HR Questions interviewfragen und antworten - Total 49 questions
REST API interviewfragen und antworten - Total 52 questions
Content Writer interviewfragen und antworten - Total 30 questions
Banking interviewfragen und antworten - Total 20 questions
Checkpoint interviewfragen und antworten - Total 20 questions
Blockchain interviewfragen und antworten - Total 29 questions
Technical Support interviewfragen und antworten - Total 30 questions
Mainframe interviewfragen und antworten - Total 20 questions
Hadoop interviewfragen und antworten - Total 40 questions
Chemistry interviewfragen und antworten - Total 50 questions
Docker interviewfragen und antworten - Total 30 questions
Sales interviewfragen und antworten - Total 30 questions
Nature interviewfragen und antworten - Total 20 questions
Interview Tips interviewfragen und antworten - Total 30 questions
College Teachers interviewfragen und antworten - Total 30 questions
SDLC interviewfragen und antworten - Total 75 questions
Cryptography interviewfragen und antworten - Total 40 questions
RPA interviewfragen und antworten - Total 26 questions
Blue Prism interviewfragen und antworten - Total 20 questions
Memcached interviewfragen und antworten - Total 28 questions
GIT interviewfragen und antworten - Total 30 questions
DevOps interviewfragen und antworten - Total 45 questions
Accounting interviewfragen und antworten - Total 30 questions
SSB interviewfragen und antworten - Total 30 questions
Algorithm interviewfragen und antworten - Total 50 questions
Business Analyst interviewfragen und antworten - Total 40 questions
Splunk interviewfragen und antworten - Total 30 questions
Sqoop interviewfragen und antworten - Total 30 questions
JSON interviewfragen und antworten - Total 16 questions
OSPF interviewfragen und antworten - Total 30 questions
Insurance interviewfragen und antworten - Total 30 questions
Scrum Master interviewfragen und antworten - Total 30 questions
Accounts Payable interviewfragen und antworten - Total 30 questions
Computer Graphics interviewfragen und antworten - Total 25 questions
IoT interviewfragen und antworten - Total 30 questions
Bitcoin interviewfragen und antworten - Total 30 questions
Active Directory interviewfragen und antworten - Total 30 questions
Laravel interviewfragen und antworten - Total 30 questions
XML interviewfragen und antworten - Total 25 questions
GraphQL interviewfragen und antworten - Total 32 questions
Ansible interviewfragen und antworten - Total 30 questions
Electron.js interviewfragen und antworten - Total 24 questions
ES6 interviewfragen und antworten - Total 30 questions
RxJS interviewfragen und antworten - Total 29 questions
NodeJS interviewfragen und antworten - Total 30 questions
Vue.js interviewfragen und antworten - Total 30 questions
ExtJS interviewfragen und antworten - Total 50 questions
jQuery interviewfragen und antworten - Total 22 questions
Svelte.js interviewfragen und antworten - Total 30 questions
Shell Scripting interviewfragen und antworten - Total 50 questions
Next.js interviewfragen und antworten - Total 30 questions
Knockout JS interviewfragen und antworten - Total 25 questions
TypeScript interviewfragen und antworten - Total 38 questions
PowerShell interviewfragen und antworten - Total 27 questions
Terraform interviewfragen und antworten - Total 30 questions
JCL interviewfragen und antworten - Total 20 questions
JavaScript interviewfragen und antworten - Total 59 questions
Ajax interviewfragen und antworten - Total 58 questions
Express.js interviewfragen und antworten - Total 30 questions
Ethical Hacking interviewfragen und antworten - Total 40 questions
Cyber Security interviewfragen und antworten - Total 50 questions
PII interviewfragen und antworten - Total 30 questions
Data Protection Act interviewfragen und antworten - Total 20 questions
BGP interviewfragen und antworten - Total 30 questions
Ubuntu interviewfragen und antworten - Total 30 questions
Linux interviewfragen und antworten - Total 43 questions
Unix interviewfragen und antworten - Total 105 questions
Weblogic interviewfragen und antworten - Total 30 questions
Tomcat interviewfragen und antworten - Total 16 questions
Glassfish interviewfragen und antworten - Total 8 questions
TestNG interviewfragen und antworten - Total 38 questions
Postman interviewfragen und antworten - Total 30 questions
SDET interviewfragen und antworten - Total 30 questions
UiPath interviewfragen und antworten - Total 38 questions
Quality Assurance interviewfragen und antworten - Total 56 questions
Selenium interviewfragen und antworten - Total 40 questions
Kali Linux interviewfragen und antworten - Total 29 questions
Mobile Testing interviewfragen und antworten - Total 30 questions
API Testing interviewfragen und antworten - Total 30 questions
Appium interviewfragen und antworten - Total 30 questions
ETL Testing interviewfragen und antworten - Total 20 questions
QTP interviewfragen und antworten - Total 44 questions
Cucumber interviewfragen und antworten - Total 30 questions
PHP interviewfragen und antworten - Total 27 questions
Oracle JET(OJET) interviewfragen und antworten - Total 54 questions
Frontend Developer interviewfragen und antworten - Total 30 questions
Zend Framework interviewfragen und antworten - Total 24 questions
RichFaces interviewfragen und antworten - Total 26 questions
HTML interviewfragen und antworten - Total 27 questions
Flutter interviewfragen und antworten - Total 25 questions
CakePHP interviewfragen und antworten - Total 30 questions
React interviewfragen und antworten - Total 40 questions
React Native interviewfragen und antworten - Total 26 questions
Angular JS interviewfragen und antworten - Total 21 questions
Web Developer interviewfragen und antworten - Total 50 questions
Angular 8 interviewfragen und antworten - Total 32 questions
Dojo interviewfragen und antworten - Total 23 questions
GWT interviewfragen und antworten - Total 27 questions
Symfony interviewfragen und antworten - Total 30 questions
Ruby On Rails interviewfragen und antworten - Total 74 questions
CSS interviewfragen und antworten - Total 74 questions
Yii interviewfragen und antworten - Total 30 questions
Angular interviewfragen und antworten - Total 50 questions
Copyright © 2026, WithoutBook.