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
Hire a Tutor
AI Tutor
New
Search
Search
Sign In
Register
study help
computer science
oracle
Questions and Answers of
Oracle
What is the result of the following? A. It prints just one line.B. It prints one line and then the number 3.C. There is no output.D. The code does not compile.E. The code compiles but throws an
Which of the following can fill in the blank to print out just the number 161? import java.util.*; import java.util.stream.*; class Runner { public int getNumberMinutes() { return numberMinutes; }
Which of the following exceptions do not need to be handled or declared by the method in which they are thrown? (Choose
What is the output of the following application? A. 1 1B. 3 1C. The answer cannot be determined until runtime.D. The code does not compile.E. The code compiles but throws an exception at
What is the result of the following? A. 3.011459B. 3.1401MMC. 59.011459D. 59.1401MME. The code does not compile.F. The code compiles but throws an exception at runtime. import java.time. *;
Which is part of the module service and has a requires directive?A. ConsumerB. Service locatorC. Service providerD. Service provider interfaceE. None of the above.
What option names are equivalent to -p and -cp on the javac command? (Choose two.)A. --module-path and -classpathB. --module-path and -class-pathC. --module-path and --class-pathD. --path and
What is the result of the following when called as java Binary.java? A. []B. [0, 01, 1, 10]C. [0, 01, 10, 1]D. [0, 1, 01, 10]E. The code does not compile.F. The code compiles but throws an
What is the output of the following application? A. XB. YC. The application completes without printing anything.D. ElectricBass is the first class to not compile.E. RockBand is the first class
What does the following do? A. It prints true.B. It prints false.C. It doesn’t compile due to line k1.D. It doesn’t compile due to line k2.E. It doesn’t compile due to another line.
Which of the following lambda expressions can be passed to a method that takes IntUnaryOperator as an argument? (Choose three.) A. v -> {System.out.print("Hello!"); return 2%1;}B. (Integer w) ->
How many of these module declarations are valid? A. None.B. One.C. Two.D. Three.E. Four.F. Five. module com.apple { exports com.apple; } module com.4apple { requires com.apple;} module
What is the output of the following application? A. MathB. UnknownC. Unknown followed by Done!D. The code does not compile due to line p1.E. The code does not compile due to line p2.F. None of
What is the result of compiling and running the following application? A. It prints two lines.B. It prints three lines.C. One line of code does not compile.D. Two lines of code do not
How many of these variables are true? A. One.B. Two.C. Three.D. Four.E. Five.F. None. The code does not compile. var lol = "lol"; var smiley = lol.toUpperCase() == lol; var smirk
Let’s say you are managing animals at a veterinary hospital using a new software application.Which metadata attributes would be best managed with an annotation? (Choose two.)A. The number of
How many of the following variable declarations compile? A. None.B. One.C. Two.D. Three.E. Four.F. Five. 1: import java.util.*; 2: public class ListOfList { public void create() { 3: 4: 5: 6:
What is the output of the following application? A. 5,LONGB. 6,LONGC. 5,nullD. 6,nullE. The code does not compile.F. The code compiles but throws an exception at runtime. package fly; public
Fill in the blank with code that belongs in a service provider.A. Mouse.get()B. Mouse::getC. Provider.get()D. Provider::getE. None of the above. String cheese ServiceLoader.load(Mouse.class)
Which lines can fill in the blank that would allow the code to compile? (Choose two.) A. boolean passed() { return part1.pass && part2.pass; }B. boolean passed() { return part1.passed()
Which of the following are valid lambda expressions? (Choose three.)A. () -> {}B. (Double adder) -> {int y; System.out.print(adder); return adder;}C. (Long w) -> {Long w=5; return 5;}D. (int
How many lines of the following application contain compilation errors? A. The code compiles and runs without issue.B. One.C. Two.D. Three.E. Four.F. None of the above. 1: package percussion;
Given the Electricity annotation, how many lines of the Solar class contain a compiler error? A. One.B. Two.C. Three.D. Four.E. Five.F. Six.G. None of the above. 1: import
What is the output of the following application? A. Painting: 00FF00B. One line of code does not compile.C. Two lines of code do not compile.D. Three lines of code do not compile.E. The code
What is the result of running the following program? A. 6B. XC. The code does not compile.D. The code compiles but throws a NullPointerException at runtime.E. The code compiles but throws a
What is the output of the following? A. 2 2B. 2 3C. 3 2D. 3 3E. The code does not compile.F. The code compiles but throws an exception at runtime. var listing = new String[] [] { { "Book",
Which of the following are JDBC interfaces in the java.sql package?A. Driver, QueryB. Driver, ResultSetC. DriverManager, QueryD. DriverManager, ResultSetE. Driver, DriverManager,
Given the following class, which statement is correct? A. The class does not contain any security issues.B. The class contains exactly one security issue.C. The class contains exactly two
How many objects are eligible for garbage collection immediately before the end of the main() method? A. None.B. One.C. Two.D. Three.E. The code does not compile.F. None of the above. public
Fill in the blanks: Using the ________ and ________ modifiers together allows a variable to be accessed from any class, without requiring an instance variable. A. class, staticB. default,
Which statements when inserted independently will throw an exception at runtime? (Choose two.) var x = new LinkedList (); x.offer (18); // INSERT CODE HERE A. B. x. peek (); x.peek(); x. poll ();
Which of the following shows a valid Locale format? (Choose two.) A. iwB. UAC. it_chD. JA_JPE. th_THF. ES_HN.
Which sets of lines can be removed without stopping the code from compiling and while printing the same output? (Choose three.) A. Lines 15 and 17B. Lines 16 and 23C. Lines 17, 18, and 22D. Line
How many objects are eligible for garbage collection at the end of the main() method? A. None.B. One.C. Two.D. Three.E. The code does not compile.F. None of the above. package store; public
Which of the following variable types can be used in a switch statement under some circumstances? (Choose three.)A. An enumerated typeB. StringBuilderC. ByteD. DoubleE. varF. Exception.
What is the output of the following application? A. Time to pick!B. Time to pick! followed by Not yet!C. One line of code does not compile.D. Two lines of code do not compile.E. Three lines of
Which statements about the following class are correct? (Choose two.) A. LackOfInformationException compiles without issue.B. The constructor declared at line t1 does not compile.C. The
Assuming the following class is concurrently accessed by numerous threads, which statement about the CountSheep class is correct? A. The class is thread-safe only if increment1() is removed.B. The
Which statements best describe the result of executing this code? (Choose two.) A. The println() causes one line of output.B. The println() causes two lines of output.C. The println() causes
Which statements about the following application are true? (Choose two.) package party; import java.util.concurrent.*; public class Plan { Executor Service s = Executors.newScheduled ThreadPool
Which of the following is a valid method name in Java? (Choose two.)A. _____B. %runC. check-ActivityD. $Hum2E. sing\\3F. po#ut
Which two options when inserted independently can fill in the blank to compile the code?(Choose two.)javac ______ mods -d birds com-bird/*.java
Which classes when inserted into the blank do not allow this code to compile? (Choose two.) A. FileNotFoundExceptionB. NumberFormatExceptionC. ExceptionD. ErrorE. ThrowableF. RuntimeException
What is the result of compiling and executing the following application?A. 0 1B. 1 1C. 1 2D. 2 2E. The code does not compile.F. The code compiles but produces an exception at runtime. package
Which are true statements about the majority of steps in migrating to a modular application?(Choose two.)A. In a bottom-up migration, automatic modules turn into named modules.B. In a bottom-up
Which of the following are true about Java operators and statements? (Choose three.)A. Both right-hand sides of the ternary expression are evaluated at runtime.B. A switch statement may contain at
Assume the file system is accessible, /flower/rose.txt exists, and the other two directories /garden and ursery do not exist. What is the expected result after executing the following code
Which of the following are valid functional interfaces? (Choose two.) A. interface CanClimb { } B. interface CanDance { } C. } interface CanFly { D. default void climb() {} static void climb (int
Suppose we have a peacocks table with two columns: name and rating. What does the following code output if the table is empty? A. falseB. trueC. The code does not compile due to lines
Which of the following are valid in a Java file, listed in the order in which they are declared?(Choose two.)A. A package-private class declaration and a public interface declarationB. Two package
Which of the following sequences can fill in the blanks so the code prints -1 0 2? A. compare, mismatch, compareB. compare, mismatch, mismatchC. mismatch, compare, compareD. mismatch, compare,
What does the following output? A. 2B. 3C. [3 2]D. The code does not compile.E. None of the above. var dice = new LinkedList (); dice.offer (3); dice.offer (2); dice.offer (4); System.out.print
What is the output of executing the following code snippet? A. 3 3B. 2 4C. One of the marked lines (x1, x2, x3, x4) does not compile.D. Two of the marked lines (x1, x2, x3, x4) do not
Which statements about the following class that loads a library on startup are correct? (Choose three.) A. Line j1 contains a security error or risk.B. Line j2 contains a security error or
How many times does this code print [2, 7, 8]? A. Zero.B. One.C. Two.D. Three.E. The code does not compile.F. The code compiles but throws an exception. 1: import java.util.*; 2: 3: 4: import
Fill in the blanks with the proper method names to deserialize an object. (Choose two.) A. writeObject in the first blankB. writeResolve in the first blankC. readObject in the first
How many lines of the following application do not compile? A. None. The code compiles and produces a stack trace at runtime.B. One.C. Two.D. Three.E. Four.F. Five. 1: package castles; 2:
What is the result of the following? A. [Natural History, Science]B. [Natural History, Science, Art]C. The code does not compile.D. The code compiles but throws an exception at runtime. } import
Which commands can include the following output? (Choose two.) A. jdeps sneaky.jarB. jdeps –j sneaky.jarC. jdeps –s sneaky.jarD. jdeps --internals sneaky.jarE. jdeps -jdkinternals
What is the output of the following?A. rB. eC. edD. redE. The code does not compile.F. The code compiles but throws an exception at runtime. public class Legos { public static void
What is the output of the following when run as java EchoFirst.java seed flower plant? A. 0B. 1C. 2D. The code does not compile.E. The code compiles but throws an exception at runtime.F. The
What is the output of the method that main() calls? A. longsB. numsC. shortsD. varargsE. The code does not compile. public class Hippo { private static void hippo (short num1, short num2) {
Suppose you have a consumer that calls the lion() method within a Lion service. You have four distinct modules: consumer, service locator, service provider, and service provider interface. If you add
Which annotations will trigger a compiler error if incorrectly applied to a method with no other annotations? (Choose
Which of the following cannot be instantiated directly by the caller using the constructor?(Choose two.)A. LocaleB. ResourceBundleC. Locale.BuilderD. PropertiesE. DateTimeFormatterF. HashMap
Which lines fail to compile? A. Only line xB. Only line yC. Both lines x and yD. The code compiles. package armory; import java.util.function. *; interface Shield { void protect(); } class
Fill in the blanks: The operators +=, ______, ______, _______, _______, and -- are listed in increasing or the same level of operator precedence. (Choose two.)A. ^, *, =, ++B. %, *, /, &&C. =, +,
What is the result of the following? A. 0B. 0.007C. The code does not compile due to line 7.D. The code does not compile due to line 8.E. The code does not compile for another reason. 1: import
What is the result of the following? A. The code compiles and outputs 1.B. The code compiles and outputs 8.C. The first compiler error is on line c1.D. The first compiler error is on line
Given that FileNotFoundException is a subclass of IOException and Long is a subclass of Number, what is the output of the following application? A. 15B. It does not compile because of line
Which of the following statements about InputStream and Reader are correct? (Choose two.)A. They are both abstract classes.B. They can both be used to read character data.C. One contains a read()
Which are true statements about interfaces and abstract classes? (Choose three.)A. Abstract classes offer support for single inheritance, while interfaces offer support for multiple
What is the output of the following? A. Leaves growingB. ingC. wingD. The code does not compile.E. The code compiles but throws an exception at runtime. var builder = new StringBuilder ("Leaves
Which of the following statements about nested classes are correct? (Choose three.)A. An anonymous class can declare that it implements multiple interfaces.B. All nested classes can contain
Starting with DoubleBinaryOperator and going downward, fill in the values for the table.A. 1, 0, 0, 0, 2B. 1, 2, 1, 0, 1C. 2, 1, 0, 1, 2D. 2, 1, 1, 0, 1E. 2, 1, 2, 0, 2F. 3, 0, 2, 1, 1
Which of the following methods can run without error for at least one SQL query? A. moreChoices()B. stillMoreChoices()C. choices() and stillMoreChoices()D. moreChoices() and
What can fill in the blank so the play() method can be called from all classes in the com.mammal.eland package, but not the com.mammal.gopher package? package com.mammal; A. Leave it
Which of the following statements about java.lang.Error are most accurate? (Choose two.)A. An Error should be thrown if a file system resource becomes temporarily unavailable.B. An application
How many of the following lines contain a compiler error? A. ZeroB. OneC. TwoD. ThreeE. FourF. Five. long min1= 123.0, max1 = 987L; final long min2 = 1_2_3, max2 = 9__8__7; long min3= 123, int
Given the following two classes, what change to the StealSecret class would allow it to read and email the password to a hacker? A. There are no changes, as the Secret class is secure.B. Override
Which statement about the following classes is correct? A. Only Faucet is immutable.B. Only Spout is immutable.C. Both classes are immutable.D. Neither class is immutable.E. None of the above
How many of Connection, Driver, DriverManager, PreparedStatement, and ResultSet are JDBC interfaces included with the JDK? A. NoneB. OneC. TwoD. ThreeE. FourF. Five
What must be the first characters of a database URL?A. db,B. db:C. jdbc,D. jdbc:E. None of the above
Which of these obtains a Connection?A. Connection.getConnection(url)B. Driver.getConnection(url)C. DriverManager.getConnection(url)D. new Connection(url)E. None of the above
Which is responsible for getting a connection to the database?A. DriverB. ConnectionC. PreparedStatementD. StatementE. ResultSet.
Which method in DriverManager is overloaded to allow passing a username and password?A. conn()B. connect()C. forName()D. getStatement()E. open()F. None of the above
Suppose the pandas table has one row with the name Mei Xiang and the location DC. What does the following code output? A. Mei XiangB. No matchC. The code does not compile due to line s1.D. The
Consider the three methods execute(), executeQuery(), and executeUpdate().Fill in the blanks: _______ of these methods is/are allowed to run a DELETE SQL statement while ________ of these methods
Suppose we have a peacocks table with two columns: name and rating. What does the following code output if the table is empty? A. falseB. trueC. The code does not compile due to line s1.D. The
Assuming the clowns database exists and contains one empty table named clowns, what is the output of the following? A. The code terminates successfully without any output.B. The code does not
What is the correct order to close database resources?A. Connection then PreparedStatement then ResultSetB. Connection then ResultSet then PreparedStatementC. PreparedStatement then Connection
Suppose we have a bunny table with two columns: name and color. What does the following code output if the table is empty? A. 0B. 1C. The code does not compile due to line s1.D. The code does
Suppose the pandas table has one row with the name Mei Xiang and the location DC. What does the following code output? A. Mei XiangB. No matchC. The code does not compile due to line s1.D. The
Which is true if the clowns database exists and contains an empty clowns table? A. The code compiles and prints 0 without error.B. The code compiles and prints 1 without error.C. The code does
Suppose we have an empty bunny table with two columns: name and color. What is the state of the table after running this code? A. Only one row has the color Brown set.B. It has two rows, and the
Suppose we have a peacocks table with two columns: name and rating. What does the following code output if the table is empty? A. falseB. trueC. The code does not compile due to line s1.D. The
Which are true statements? (Choose two.)A. A PreparedStatement is generally faster than a Statement when each is run 100 times.B. A PreparedStatement is generally slower than a Statement when each
What is the most likely outcome of this code if the people table is empty? A. It prints false false.B. It prints true false.C. It does not terminate.D. It throws a SQLException.E. None of the
Fill in the blank with the correct annotation usage that allows the code to compile. A. @CelestialBody(name="Venus")B. @CelestialBody(name="Pluto", size=2,
Fill in the blank with the correct value for @Target that allows the code to compile. A. ElementType.METHOD, ElementType.CONSTRUCTORB. ElementType.ANNOTATION_TYPEC. ElementType.CONSTRUCTOR,
Showing 100 - 200
of 1045
1
2
3
4
5
6
7
8
9
10
11