Q. Which of the following is the correct syntax to create a variable in Java?

  • (A) var name;
  • (B) int name;
  • (C) var name int;
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) int name;

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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