Q. Which syntax is valid to create a vector in java?
β
Correct Answer: (A)
Vector < string > names = new Vector < String > ();
Explanation: The hex2bin() function is used to convert hexadecimal values to the ASCII characters.
The syntax to create a vector in Java is:
Vector < string > names = new Vector < String > ();
The syntax to create a vector in Java is:
Vector < string > names = new Vector < String > ();