All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Ask a Question
Search
Search
Sign In
Register
study help
computer science
advanced java programming
Questions and Answers of
Advanced Java Programming
What is the full form of RMI?(a) Remote Method Interaction(b) Registered Method Invocation(c) Registered Method Interaction(d) Remote Method Invocation
Which of the following commands is used to start an object registry?(a) Startregistry(b) Registrystart(c) Rmiregistry(d) Activateregistry
Which of the following interfaces must an activatable remote object’s class implement?(a) DoActivate(b) Activate(c) Activable(d) Activatable
Which of the following methods in Naming class is used to bind an object?(a) doBind()(b) bind()(c) register()(d) DoRegister()
Which of the following exceptions must be thrown by a remote method?(a) NetworkException(b) MarshallingException(c) CommunicationException(d) RemoteException
Which of the following methods is used to find an object registry?(a) findRegistry()(b) getRegistry()(c) lookupRegistry()(d) searchRegistry()
Which of the following methods is used to create a new registry?(a) createRegistry()(b) makeRegistry()(c) newRegistry()(d) constructRegistry()
Which of the following methods on registry is used to get a remote reference?(a) search()(b) get()(c) find()(d) lookup()
Which of the following interfaces must be implemented by a class for its instances to be serializable?(a) DoSerialize(b) MakeSerializable(c) Serialize(d) Serializable
Which of the following components activates an object?(a) Activator(b) Activation group(c) Faulting Reference(d) Stub
What is the difference between RMI and Socket?
What is RMI Registry?
What are the exceptions thrown by RMI?
What is the difference between a stub and a skeleton?
Why does RMI require an interface?
What is a serializable object? Give some examples of non-serializable objects in Java.
Explain the RMI architecture.
How do Java RMI clients contact remote Java RMI servers?
What is a remote object? Why should we extend UnicastRemoteObject ?
What is the difference between RMI and CORBA?
What are the services provided by the RMI Object?
What are the differences between RMI and a socket?
How will you pass parameters in RMI ?
What is the difference between using bind() and rebind() methods of Naming Class?
Can a class implementing a Remote interface have non-remote methods?
What are the layers of RMI Architecture?
What is the role of java.rmi.Naming Class?
What is the role of Remote Interface in RMI?
Why must classes implement Serializable in order to be written to an ObjectOutputStream?
Write the format of an RMI URL.
What is the default port number of SMTP?(a) 25(b) 465(c) 22(d) 110
What is the full form of SMTP?(a) Simple Mail Transportation Protocol(b) Simple Mail Transfer Policy(c) Simple Message Transfer Protocol(d) Simple Mail Transfer Protocol
What is the full form of POP?(a) Post Office Policy(b) Post Object Protocol(c) Post Office Protocol(d) Permanent Object Protocol
What is the full form of IMAP?(a) Internet Message Access Protocol(b) Internet Mail Access Protocol(c) Internet Message Access Policy(d) Internet Mail Access Policy
What is the full form of MIME?(a) Multipurpose Internet Mail Extension(b) Multipurpose Internet Message Extension(c) Multipurpose Internet Mail Expansion(d) Multipurpose Internet Message Expansion
Which of the following is used to retrieve emails from a mail server?(a) SMTP(b) POP3(c) HTTP(d) FTP
Which of the following is used to send emails from a mail server?(a) SMTP(b) POP3(c) HTTP(d) IMAP
When retrieving mail, which of the following is the proper order of working with classes?(a) Store, Folder, Message, Transport(b) Session, Store, Folder, Message(c) Session, Store, Folder,
Which of the following characters is used in an email address?(a) @(b) #(c) $(d) %
Which of the following packages contains classes and interfaces for sending and retrieving mails?(a) javax.email(b) java.mail(c) java.email(d) javax.mail
Which of the following methods is used to get an instance of Session class?(a) getInstance()(b) createInstance()(c) makeInstance()(d) inatance()
Which of the following methods of Transport class is used to send an email?(a) deliver()(b) doDeliver()(c) send()(d) doSent()
Which of the following port numbers are used for SMTP with SSL?(a) 25(b) 465(c) 587(d) 22
Which of the following properties is used to use TLS?(a) mail.smtp.enable(b) mail.starttls.enable(c) mail.smtp.starttls.enable(d) mail.smtp.starttls
Which of the following classes is used to create a multi-part message?(a) Multipart(b) Multiplepart(c) Manypart(d) Multi-part
Which of the following methods are used to attach a file to an email message?(a) addFile()(b) appendFile()(c) attachFile()(d) doAttach()
What is the correct content type for html content?(a) text/plain(b) text/html(c) html/text(d) html/plain
Which of the following ports is used for POP3 with SSL?(a) 993(b) 110(c) 143(d) 995
Which of the following classes represents message storage?(a) Storage(b) Store(c) Folder(d) Message
Which of the following methods is used to delete email messages permanently?(a) expunge()(b) delete()(c) doDelete()(d) doExpunge()
Mention some limitations of POP.
Write some of the advantages of IMAP over POP.
Explain the format of an email address.
Describe briefly the working principle of SMTP.
Write the steps to be followed to send an email using JavaMail API.
How does a client authenticate it to the SMTP that uses SSL or TLS?
What is meant by secured SMTP and how is that implemented?
What do you mean by a mail session?
Describe the different procedures to create a Session object.
What is the purpose of MIME?
Describe briefly the format of a MimeMessage.
What are the differences between a single-part message and a multipart message?
Describe the procedure of attaching a file to an email.
How do you send an email having html content?
A message may be sent using static send()method as well as sendMessage() method. Which one will you prefer and why?
What do you mean by primary, Carbon Copy and Blind Carbon Copy recipients?
Explain briefly the function of SSL in the context of SMTP.
Describe briefly the Post Office Protocol.
Describe briefly the working principle of IMAP.
Explain briefly the function of SSL in the context of POP.
Describe the procedure to reply to an email.
Write the steps to be followed to forward an email to a given email address.
Describe the procedure to copy emails from one folder to another.
What is an Applet?(a) The name of a database(b) A kind of fruit(c) A Java program that is run through a web browser(d) An interactive website
What is the difference between a Java Applet and a Java application program?(a) All the methods in an applet class are private.(b) Applets can create GUI, applications cannot.(c) Applets are run
What is the full form of AWT?(a) Adjust Window Table(b) Abstract Window Toolkit(c) Auto Window Transfer(d) Advanced Window Toolkit
Which one of the following is a valid declaration of an applet?(a) Class AnApplet implements Applet {(b) Public class AnApplet extends applet implements Runnable {(c) Abstract class AnApplet extends
Why does an applet have no main() method?(a) The browser acts as the main. The applet provides methods for the browser.(b) The paint() method is like the main method for an applet.(c) Programs
Which of the following classes must your applet extend?(a) Component(b) Graphics(c) Applet(d) AWT
What is the function of the Graphics object?(a) It represents the canvas of the applet and provides drawing methods.(b) It represents the status bar.(c) It represents the entire screen of the
Which of the following codes is used to display the string “Hello World!” at X=20 Y=50 location? Assume that g holds a Graphics object reference.(a) g.println( “Hello World!”
Which of the following sets the background color of the applet to white?(a) setBackColor( gray );(b) setBackGround( gray );(c) setBackGround( Color.gray );(d) setBackColor( Color.gray );
Which of the following packages must be imported to get the class Applet?(a) java.applet.Applet(b) java.util.*(c) java.awt.*(d) javax.swing.*
Which of the following must be imported to get the graphics components?(a) java.util.*(c) java.Graphics(b) java.awt.*(d) java.lang.*
Which of the following tags is used to pass parameters to applets? (a) (b) (c) (d)
Which of the following tags is used to insert an applet into an HTML document? (a) (b) (c) (d)
Which of the following methods is called by the browser when it wishes to display on the monitor?(a) draw()(b) show()(c) display()(d) paint()
Can the source code for your applet be compiled by the usual javac compiler?(a) No, because applets have no main() method.(b) Yes, if you are going to run it from the DOS prompt.(c) Yes, an applet
Which of the following methods is used to draw a rectangle filled in with the current color?(a) fillRect()(b) drawRect()(c) fillOval()(d) drawOval()
If you are using the Graphics object g and wish to change the pen color to blue, what should you do?(a) g.setPen(Color.blue)(b) setBackground(Color.blue)(c) g.setColor(Color.blue)(d) g.setBlue( )
Which of the following statements is true?(a) Applets have main() function.(b) Applets cannot use System.out.print() method.(c) Applets are JavaScript programs.(d) Applets run within a web
Which of the following sequences is the correct order of method call?(a) start(), init(), paint(), stop(), destroy()(b) init(), paint(), start(), stop(), destroy()(c) init(), start(), paint(),
Which of the following is not a method of the Applet class?(a) move()(b) resize()(c) play()(d) isActive()
What are applets?
Explain why applets do not have constructors.
Explain briefly the applet’s life cycle methods.
What are the differences between Java applets and Java applications?
Write the steps involved in applet development.
Write the sequence of applet’s life cycle methods in which they are called.
Demonstrate with example, how parameters are passed to applets.
Showing 100 - 200
of 1226
1
2
3
4
5
6
7
8
9
10
11
12
13