What is the best way to return an array from a function?
Correct Answer: public String[] test(){ String i[] = new String[5]; return i; }
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Java MCQ Questions
Which Java technologies support transaction processing?
Which statements are true regarding using wildcards in java code that uses generics? Select all true statements.
An online shop employs a stateless session bean (named ‘Eshop’) to process the request. ‘Eshop’ Uses a declarative transaction management system. The following code is from the XML deployment descriptor file of the bean: Eshop com. solution. EshopHome com. Solution. Eshop com. Solution. EshopLocalHome<.local-home> com. Solution. EshopLocal com. Solution. eshopBean The session and transaction attributes are to be coded in the numbered 10 and 11. Which of the Following options should be used to make the bean work as expected?
Which two statements apply to redirecting an HTTP request to another URL in JSP?
Which statement is true regarding ServletContextInit Parameters in the deployment descriptor?
In RMI Distributed object applications need to do?
In Naming class which method specifies name to a remote object?
In RMI the objects are passed by Value or Reference?
In RMI which layer defines and supports the invocation semantics of the RMI connection, this layer maintains the session during the method call?
RMI and EJB, provides services to access an object running in another JVM (known as remote object)?