Which JDK command is correct to run a Java application in ByteCode.class?
Shamsa hafeez from Lahore, Pakistan is saying java ByteCode is correct answer
Tsega Asresa Mengistu from Dessie, Ethiopia is saying javac ByteCode.java is correct answer
Sheila Rutto from Metairie, United States is saying javac ByteCode.java is correct answer
Arpit Srivastava from New Delhi, India is saying java ByteCode is correct answer
Ranjeet narvariya from Jabalpur, India is saying java ByteCode is correct answer
- [A] It will contain a garbage value
- [B] It will initialized with zero
- [C] Compiler will give an error
- [D] None of above
- [A] By invoking the execute(...) or executeUpdate(...) method of a normal Statement object or a sub-interface object thereof
- [B] By invoking the executeInsert(...), executeDelete(...) or executeUpdate(...) methods of the DataModificationStatement object
- [C] By making use of the InsertStatement, DeleteStatement or UpdateStatement classes
- [D] None
- [A] All objects that are eligible for garbage collection will be garbage collected by the garbage collector.
- [B] Objects with at least one reference will never be garbage collected.
- [C] Objects from a class with the finalize() method overridden will never be garbage collected.
- [D] Objects instantiated within anonymous inner classes are placed in the garbage collectible heap.
- [A] Only the garbage collection system can destroy an object.
- [B] X.delete
- [C] X.destroy
- [D] none