Q. Which syntax is valid to create a vector in java?

  • (A) Vector < string > names = new Vector < String > ();
  • (B) Vector name = new string;
  • (C) int name = new vector ()
  • (D) All of these
πŸ’¬ Discuss
βœ… 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 > ();
Explanation by: Team MCQ Buddy
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 > ();

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
297
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
84%
Success Rate