Friday, August 14, 2015

Java elance Upwork (oDesk) TEST ANSWER (2015-2016)


Java elance Upwork (oDesk) TEST ANSWER (2015-2016)

Java is open source language , its too famous programming language help to develop many things. its too powerful programming language. Upwork offers lots of new jobs of java . For helping java students and who want to give test of upwork java skill understand the answers of java skill upwork test answers. Elance upwork java test answers below shown.  

Question:

SQLException has a feature of chaining - identify the right code to execute the same from the following options:

Answers:

catch(SQLException e) { out.println(e.getMessage()); while((e=e.getNextException())!=null) { out.println(e.getMessage()); } }

Question:

Which statements are true regarding ServletContext Init Parameters in the deployment descriptor?

Answers:

They are set at deployment-time and can be updated at run-time.

Question:

JDBC is based on:

Answers:

X/Open CLI (Call Level Interface)

Question:

Which option lists Java access modifiers in the right order from the most permissive to the most restrictive?

Answers:

public, protected, no modifier/default/package, private

Question:

X.509 version 3 specifies which of the following?

Answers:

A format and content for digital certificates.

Question:

Select all true statements:

Answers:

An abstract class can have non-abstract methods.

Question:

Which option could be used to see additional warnings about code that mixes legacy code with code that uses generics?

Answers:

Xlint:unchecked

Question:

The principal finder method that must be implemented by every entity bean class is:

Answers:

findByPrimaryKey()

Question:

Which of the following methods are members of the Vector class and allow you to input a new element?

Answers:

addElement

Question:

There are three classes named A, B, and C. The class B is derived from class A and class C is derived from B. Which of the following relations are correct for the given classes?

Answers:

Any instance of B is an instance of A.

Question:

Choose all valid forms of the argument list for the FileOutputStream constructor shown below:

Answers:

FileOutputStream( File f )

Question:

Which of the following are the methods of the Thread class?

Answers:

yield()

Question:

Which of the following statements regarding abstract classes are true?

Answers:

The abstract class may have method implementation.

Question:

Which of the following methods should be invoked by the container to get a bean back to its working state?

Answers:

EJBActivate()

Question:

The JDK comes with a special program that generates skeleton and stub objects that is known as:

Answers:

rmic

Question:

In which class is the notify method defined?

Answers:

Object

Question:

Which exception must a setter of a constrained JavaBean property throw to prevent the property value from changing?

Answers:

PropertyVetoException

Question:

Which statements are true? Select all true statements.

Answers:

A method can be declared synchronized.

Question:

What is the result of an attempt to compile and run the given program? public class Test107 { public static void main(String[] args) { System.out.println(test()); } private static int test() { return (true ? null : 0); } }

Answers:

It compiles, but throws NullPointerException at run-time.

Question:

Which of these interfaces is the most applicable when creating a class that associates a set of keys with a set of values?

Answers:

Map

Question:

Which design pattern reduces network traffic by acting as a caching proxy of a remote object?

Answers:

value object

Question:

What protocol is used by the DatagramSocket class?

Answers:

UDP

Question:

Which of these is not an event listener adapter defined in the java.awt.event package?

Answers:

ActionAdapter

Question:

Which of the following methods can be used for reporting a warning on a Connection object, Statement object & ResultSet object?

Answers:

getWarnings()

Question:

Which of the following is the correct syntax for creating a Session object?

Answers:

HttpSession ses=request.getSession();

Question:

Which of the following are valid ways to define a thread in Java?

Answers:

Create a subclass of java.lang.Thread class

Question:

Assuming the servlet method for handling HTTPGET requests is doGet(HttpServletRequest req, HTTPServletResponse res), how can the request parameter in that servlet be retrieved?

Answers:

String value=req.getParameter("product");

Question:

Which of the following statements is true?

Answers:

public interface RemoteTrain extends java.rmi.Remote

No comments:

HTML5 Upwork (oDesk) TEST ANSWERS 2022

HTML5 Upwork (oDesk) TEST ANSWERS 2022 Question: Which of the following is the best method to detect HTML5 Canvas support in web br...

Disqus for upwork test answers