Which syntax is valid to create a vector in java?

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

  1. Vector < string > names = new Vector < String > ();
  2. Vector name = new string;
  3. int name = new vector ()
  4. All of these

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

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.