R

Ram Sharma • 193.86K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 200
  • Filed under category JAVA

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 > ();

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics