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 Study Help
New
Search
Search
Sign In
Register
study help
computer science
oracle
Questions and Answers of
Oracle
_______________ modules are on the classpath, while ____________ modules never contain a module-info file.A. Automatic, namedB. Automatic, unnamedC. Named, automaticD. Named, unnamedE. Unnamed,
Given the following class, how many lines contain compilation errors? A. OneB. TwoC. ThreeD. FourE. None. The code compiles as is. 1: import java.io.*; 2: class StungException extends Exception
What is the output of the Light program? A. 5,5,5B. 5,5,7C. 5,7,7D. 7,7,7E. The code does not compile.F. None of the above. package physics; class Wave { public int size = 7; } public class
How many of the following could be valid JDBC URL formats for an imaginary driver named magic and a database named box? A. Only firstB. Only secondC. Only thirdD. first and secondE. first and
Which of the following statements about interface methods are correct? (Choose three.)A. A private static interface method can call default methods.B. A public static interface method can call
Which of the following are true right before the main() method ends? (Choose two.) A. No objects are eligible for garbage collection.B. One object is eligible for garbage collection.C. Two
Which of the following can fill in the blank to output sea lion, bald eagle? String names= Stream.of( "bald eagle", "pronghorn", "puma", "sea lion") .collect(Collectors.joining (", "));
Which message does the following application print? A. Hello!B. Goodbye!C. See you again!D. It does not compile because of line g1.E. It does not compile because of line g2.F. None of the
Which are included in the Java Platform Module System? (Choose three.)A. A format for module JARsB. A list of all possible modules for JavaC. A new file format called jdepsD. Additional
Given the following two classes in the same package, which constructors contain compiler errors? (Choose three.)A. public Big(boolean stillIn)B. public Trouble()C. public Trouble(int
Fill in the blanks: The name of the abstract method in the Function interface is ______________, while the name of the abstract method in the Consumer interface is ______________. A. accept(),
How many lines fail to compile? A. OneB. TwoC. ThreeD. FourE. FiveF. Six. class Roller { public void roll (E e) { } } class Wheel { } class CartWheel extends Wheel { } public class
Given the following three property files, what does the following method output? A. morado nullB. violette genericC. morado lujosoD. violette nullE. The code does not compile.F. An exception
Which of the following are valid functional interfaces in the java.util.function package? (Choose
What change, if any, should be made to the following method to improve security? A. On line 10, the method should be marked private.B. On line 15, an ArrayList instance should be returned instead
What is the result of executing the Clownfish program? A. The code compiles and prints swim!B. The code compiles and prints fish!C. The code compiles and prints a stack trace.D. One line of the
What statements about the following method are correct? (Choose three.) A. It protects against a denial of service attack.B. It does not protect against denial of service attacks.C. It protects
What is the result of the following code? A. The code prints hop once.B. The code prints hop twice.C. The first compiler error is on line p1.D. The first compiler error is on line p2.E. The
Which of the following statements about try/catch blocks are correct? (Choose two.)A. A catch block can never appear after a finally block.B. A try block must be followed by a catch block.C. A
Which statements are correct? (Choose two.)A. A Comparable implementation is often implemented by a lambda.B. A Comparable object has a compare() method.C. The compare() and compareTo() methods
How many lines does this code output? A. One.B. Two.C. Three.D. None. It doesn’t compile.E. None. It throws an exception at runtime. import java.util.*; public class PrintNegative { public
How many lines need to be changed to make this code compile? A. ZeroB. OneC. TwoD. ThreeE. Four. 1: public class Massage { var name = "Sherrin"; 2: 3: 4: public void massage (var num) { var zip
Which two conditions best describe one or more threads that appear to be active but are perpetually stuck and never able to finish their task? (Choose two.)A. DeadlockB. LivelockC. Loss of
How many lines of the following interface do not compile? A. ZeroB. OneC. TwoD. ThreeE. FourF. None of the above 15: public interface Piano { String type = "Grand"; 16: 17: void play(); 18:
How many lines does the following code output? A. One.B. Two.C. Four.D. The code does not compile.E. The code compiles but throws an exception at runtime.F. The code compiles but enters an
How many lines of the main method fail to compile? A. NoneB. OneC. TwoD. ThreeE. FourF. Five. 10: public class Transport { 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: } } static interface
Which of the following are true? (Choose two.) A. One line needs to be changed for this code to compile.B. Two lines need to be changed for this code to compile.C. Three lines need to be changed
How many lines need to be changed to make this method compile? A. ZeroB. OneC. TwoD. ThreeE. FourF. Five. 1: 2: 3: 4: 5: 6: 7: 8: public void colors() { var yellow = ""; yellow = null; 9: 10:
What is the output of the following? A. 5B. 6C. 7D. The code does not compile.E. The code compiles but throws an exception at runtime.F. The code compiles but enters an infinite loop at
Which of the following lambda expressions can be inserted into both blanks while still allowing the application to compile? (Choose three.) A. System.out::printB. a ->
Given the following class structure, what is the proper way to create an instance of Spinner inside the bake() method? (Choose three.) A. var a = new Kitchen().new Mixer().new
Which line of code belongs in a service locator? A. ServiceLoader sl = ServiceLoader.load(Mouse.class);B. ServiceLoader sl = ServiceLoader.loader(Mouse.class);C. ServiceLoader sl =
Fill in the blanks: The __________ annotation determines whether annotations are retained in generated Javadoc, while the __________ annotation determines the location an annotation can be applied.
Which of the following use generics and compile without warnings? (Choose two.) A. List a = new ArrayList();B. List b = new ArrayList();C. List c = new ArrayList();D. List d = new
Which of the following changes, when applied independently, will print the same result as the original implementation? (Choose two.) A. Change the type on line 10 to doubleB. Change the type on
What does the following code print? A. init-hare-tortoiseB. init-hareC. The first line with a compiler error is line x1.D. The first line with a compiler error is line x2.E. The code does not
Which statements are true about the requires directive? (Choose two.)A. Changing it to a requires direct directive is always allowed.B. Changing it to a requires direct directive is never
What is the output of the following? A. 2-2B. 200-1C. 500-0D. 500-2E. The code does not compile.F. The code compiles but throws an exception at runtime. 1: package reader; 2: import 3: 4:
What is the output of the following? A. 1223445B. 2445C. 22445D. 223445E. 2233445F. None of the above. public class InitOrder { } {System.out.print("1"); } static System.out.print("2"); }
What is the output of the following application? Assume the file system is available and able to be written to and read from. A. 2,NONEB. 3,nullC. 4,CasinoD. 4,nullE. One line would need to be
What does ServiceLocator.load(ChocolateLab.class) return?A. CollectionB. ListC. StreamD. None of the above
Fill in the blanks: Because of ___________, it is possible to ___________ a method, which allows Java to support ___________.A. abstract methods, override, inheritanceB. virtual methods, override,
What is true about the following? A. The code doesn’t compile due to line c1.B. The code doesn’t compile due to line c2.C. The code doesn’t compile due to line c3.D. The code compiles and
What is the output of the following application? A. Starting...Insulation:20B. Starting...Insulation:40C. The code does not compile because of line v1.D. The code does not compile because of
What is the output of the following application? A. 145B. 1045C. 24, followed by a stack traceD. 245E. The code does not compile because of line p1.F. The code does not compile because of line
What is the output of this code? A. 1B. 2C. 3D. 4E. The code does not compile.F. The code compiles but prints something else. 10: var m = new TreeMap (); 11 m.put(1, 4); 12: m.put (2, 8); 13:
Consider the modules diagram in question 17. Suppose we want the code in module com.sf to depend on code in module com.ny. Which of the following directives goes into module com.ny’s module-info
What is the default parallel degree for the database parallel upgrade utility, dbupgrade?a. 2b. 4c. 6d. 8
Does the database upgrade utility create a guaranteed restore point by itself?a. Yesb. No
How many fixup scripts does the dbupgrade command produce after running the preupgrade.jar?a. 1b. 6c. 3d. 2
Does the database parallel upgrade utility upgrade the Timezone version?a. Yesb. No
How many modes can an AutoUpgrade utility be run in?a. 2b. 3c. 6d. 4
Can the AutoUpgrade configuration file contain more than one database entry in it and can the AutoUpgrade upgrade more than one database in a single command?a. Yesb. No
Along with the database upgrade, does the AutoUpgrade utility also upgrade the Timezone version?a. Yesb. No
Does the AutoUpgrade command, when run in the analyze mode, make any changes to the source database?a. Nob. Yes
Do we have to upgrade the database first and then convert it to a pluggable database?a. Yesb. Noc. May be
Oracle 19c comes with a default autoupgrade.jar file; is it good to use this or download the latest autoupgrade from mos?a. We can use it, but Oracle strongly recommends downloading the latest
When we migrate the non-cdb database as a pdb database, do we need to copy its TDE keys to the container database wallet location, even if they both are on the same servers?a. Yesb. Noc. Not sure
Do we need to give the pdb details in the AutoUpgrade configuration file when we upgrade a multitenant database?a. Yesb. No
When we are upgrading the database to 19c, which networkrelated file do we need to copy from the source database home to the target database home, in case we have the encrypted tablespaces in the
What is the parameter in the configuration file that defines the target Container database to which the source non-cdb will be plugged into as a pluggable database?a. target_container_databaseb.
When we want to upgrade and convert non-cdb to the 19c pluggable, do we need to mention in the configuration file that the source database is a non-container database?a. Yesb. No
Can we specify multiple databases of the same version in one configuration file and upgrade all of them in one single operation using one AutoUpgrade command?a. No, each database should have its own
Is it possible to upgrade multiple databases with different versions to 19c in one single operation?a. Yes, we can do this.b. No, it is not possible to upgrade multiple databases with different
How many lines of the following declaration contain a compiler error? A. NoneB. OneC. TwoD. ThreeE. FourF. Five. 1: public @interface Thermometer { int minTemp (); 2: 3: Integer maxTemp ()
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
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
How many lines of the following declaration contain a compiler error? A. None.B. One.C. Two.D. Three.E. Four.F. Five. 1: import java.lang.annotation.*; 2: @Inherited 3: public @interface Panic
Which is found in the java.sql package that come with the standard JDK?A. Only DerbyDriverB. Only MySqlDriverC. Only OracleDriverD. DerbyDriver, MySqlDriver, OracleDriverE. Only DerbyDriver and
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. It has one row.B. It has two rows, and the color is Brown in
What is the name of a concrete class that implements Statement and is included in the core JDK? A. CallableStatementB. PreparedStatementC. StatementImplD. Both A and BE. None of the above
Given the table books in the figure and a ResultSet created by running the following SQL statement, which option prints the value 379? SELECT * FROM books WHERE title = 'Beginning
Which of the following could be valid JDBC URL formats for an imaginary driver named magic and a database named box? A. Only firstB. Only secondC. Only thirdD. Both first and secondE. Both
Which is a benefit of PreparedStatement over Statement? (Choose two.)A. Language independenceB. NoSQL supportC. ReadabilityD. SecurityE. Supports stored procedures
Which statement is true about the JDBC core classes?A. Driver is an implementation of DriverManager.B. A general Connection implementation is included in the JDK.C. A PreparedStatement uses bind
Which is true of a PreparedStatement? A. It has a method to change the bind variable to a different character other than ?.B. It can be used only for SELECT statements.C. It can be used only for
What modifier is used to mark an annotation element as optional?A. optionalB. defaultC. requiredD. valueE. caseF. None of the above.
Given a Broadway show, which information is best stored using annotations? (Choose two.)A. The number of people attending each dayB. The maximum number of tickets a person can purchaseC. The total
In what ways are annotations similar to interfaces? (Choose two.)A. They can both declare methods with bodies.B. They can both declare constructors.C. They can both declare constants.D. They can
In how many of the marked places (m1, m2, m3) will adding the line @SuppressWarnings() independently allow the class to compile without any warnings?A. None, the class does not compile as
Given the following declarations, which annotation can be applied to a method declaration? A. @Toast(true)B. @ToastC. @Bread("null")D. @Toast(wheat=true)E. @BreadF. None of the above, as the
Which properties of the Clean annotation must be true for the following to compile?(Choose three.)A. The annotation must contain exactly one element.B. The annotation must contain an element named
Which statement about the following declarations is correct? A. None of the declarations compile.B. Only the declaration of Friend contains a compiler error.C. Only the declaration of MyFriends
Fill in the blank with the value that allows the annotation to be accessible by the JVM in which it is
How many lines of the following declarations contain a compiler error? A. NoneB. OneC. TwoD. ThreeE. FourF. Five. 1: @interface Sword {} 2: public @interface Zelda { 3: private String game ();
Which of the following are permitted for an annotation element default value? (Choose three.) A. ""B. (int)1_000.0C. new String()D. Integer.valueOf(3).intValue()E. nullF. Integer.MAX_VALUE.
Assuming @Weather is a valid repeatable annotation that takes a String, with its associated containing type annotation @Forecast, which of the following can be applied to a type declaration? (Choose
Which of the following interface declarations will still compile if @FunctionalInterface is applied to each? (Choose two.) A. DogB. KCC. GeorgetteD. WebbyE. Astra. interface Dog { default void
How many lines of the following declarations contain a compiler error? A. NoneB. OneC. TwoD. ThreeE. FourF. Five. import java.lang.annotation.*; enum Colors { RED, BLUE, GREEN } @Documented
Fill in the blanks: The __________ annotation allows annotations from a superclass to be applied to a subclass, while the __________ annotation determines whether annotations are present in generated
Fill in the blank with the correct annotation usage that allows the code to compile without any
What is the result of executing the following method? A. The declaration of name does not compile.B. The declaration of _number does not compile.C. The declaration of profit$$$ does not
Which statements about try-with-resources are true? (Choose two.)A. Any resource used must implement Closeable.B. If more than one resource is used, then the order in which they are closed is the
Bill wants to create a program that reads all of the lines of all of his books using NIO.2. Unfortunately, Bill may have made a few mistakes writing his program. How many lines of the following class
Which of the following is a valid code comment in Java? (Choose three.) A. /** Insert */ in next method **/B. /****** Find the kitty cat */C. // Is this a bug?D. $ Begin method - performStart()
What is the minimum number of requires directives that need to be removed to break the cyclic dependency? A. None, there is no cyclic dependencyB. 1C. 2D. 3E. 4 module com.animal { exports
What is the result of the following? A. FallB. SpringC. The code does not compile.D. The code throws an exception on line s1.E. The code throws an exception on line s2. package calendar; public
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
Which method can fill in the blank that would cause the program to consistently print Tie! ten times? A. lock()B. tryLock()C. tryLock(10)D. The code does not compile regardless of what is placed
Given the following three class declarations, which sets of access modifiers can be inserted, in order, into the following blank lines that would allow all of the classes to compile? (Choose
Showing 1 - 100
of 1045
1
2
3
4
5
6
7
8
9
10
11