Technical Test - Java
[Link]@[Link] Cambiar de cuenta Borrador guardado
*Obligatorio
Technical Test - Java
All questions assume Java 8
What does the following method do? *
It copies characters from the array to the String in reverse order
It creates a new array that contains the same characters as the String
It determines if the array contains the same characters as the String
If there are enough slots in the array, it copies characters one by one in reverse order
from the String to the array
You're rewriting a method inherited from a parent class. What's the most *
appropriate annotation to use in this case?
@Test
@Deprecated
@Overload
@Rewrite
@Override
What would be the output of the following program? *
BCD
BDE
BD
BCDE
What's the name of the main configuration file used by Maven? *
In case you're not familiar with it, Apache Maven is one of the most prominent dependency management
and build tools available in the Java ecosystem
WEB-INF
[Link]
[Link]
[Link]
[Link]
You have compiled a Java class called Test. Now, you run it from your shell with *
the flag "-Xmx4g". What does that mean?
Set initial heap size to 4 gigabytes
Set initial thread stack size to 4 gigabytes
Set maximum heap size to 4 gigabytes
Set maximum thread stack size to 4 gigabytes
Which of the following acronyms is unrelated to Java? *
JDK
JRE
JMX
JFS
JVM
You run a Java program and get this. What's the most likely explanation for this *
problem?
You're trying to allocate a String that's bigger than the available heap memory size
You're trying to access a particular character of a String object, and the index you're
using is greater than or equal to this objects' length()
You're trying to extend a static String object past its allocated size
You're trying to execute code coming from an unknown source, hence the bytecode
interpreter cannot find it
You have a small stand-alone Java class on a file called "[Link]". Using *
command line tools only, how would you compile and run this class?
You can assume you are using a UNIX-like shell
$ javac Fibonacci && java [Link]
$ javac [Link] && ./[Link]
$ java Fibonacci
$ javac [Link] && java Fibonacci
$ java [Link] && javac Fibonacci
What is the output of the following Java program? *
[Link][Link] error: cannot find symbol "List"
What kind of HTTP request does this servlet expect in order to send a 200 OK *
response containing "Hello World!" to the client?
A HEAD request to the "/hello" path
A GET request to the "/hello" path
A GET request to the "/" path
A POST request to the "/hello" path
A POST request to the "/" path
Which of the following statements are true about Java interfaces and *
inheritance? (Pick two)
All methods declared in an interface must be defined in the class implementing that
interface, unless it's an abstract class
Classes may inherit from multiple classes using the "extends" keyword
Classes can only implement one interface at most
Interfaces cannot be instantiated
Which of the following is *NOT* a Java built-in exception? *
ArrayIndexOutOfBoundsException
ClassNotFoundException
NullPointerException
InvalidBytecodeException
You would like to build a map called "wordmap" containing some words and *
their corresponding lengths. Select all valid answers to populate that map (pick
three):
Option 6 - [Link]
dsSKM
Option 3 - [Link]
id=1mqxUgDl0KHEOtPfNwIrwL7r1V1b8MCyW
Option 2 - [Link]
id=1B_KG1GG9ZfcaUVdxW10rjsxzFjNxbY9w
Option 4 - [Link]
Option 5 - [Link]
Option 1 -
[Link]
Atrás Enviar Página 2 de 2 Borrar formulario
Nunca envíes contraseñas a través de Formularios de Google.
Este formulario se creó en [Link]. Privacidad y Términos
Formularios