a) infile.read(2)
b) infile.read()
c) infile.readline()
d) infile.readlines()
Answer:
a) infile.read(2)
Explanation:
The read(2) method reads exactly 2 characters from a local file into a python object.
a) infile.read(2)
b) infile.read()
c) infile.readline()
d) infile.readlines()
a) infile.read(2)
The read(2) method reads exactly 2 characters from a local file into a python object.
a) JProfiler b) Eclipse Profiler c) JVM d) JConsole Answer c) JVM Explanation: JVM is not a profiler. JVM is responsible for executing the java
a. True b. False c. True in some cases Answer: c. True in some cases Explanation Regular inner class holds a reference to an object
a. The type of code generated by the java compiler b. The type of code generated by the Java virtual machine c. It is another
a. ‘a’ b. “a” c. a’ d. a Answer: a. ‘a’ Explanation: Whenever character literals are written, they should be enclosed inside the single quotes.
Oracle Certified Tutor/Trainer with 100+ reviews