aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Input/Output in Java
  • The class String is defined in the package ___________.
Multiple choice

The class String is defined in the package ___________.

  1. java.awt

  2. java.lang

  3. java.math

  4. java.net

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The class String is defined in the package java.lang.

Keep practicing — related questions

  • …………is a class defined in the java.lang package, whereas it is a primitive data type defined in the Java la...
  • Which of the following packages defines a class Throwable?
  • Which of the following will compile without error.
  • The _________ package is the default package included into every Java program.
  • Which of the following class(es) belong to java.lang package?
  • Which of the following classes are available in the java.lang package? (A) Stack (B) Object (C) Math (D) Ra...
  • These classes are defined in separate files. Will this code compile successfully? package dir1; class Paren...
  • Which of the following package is contained by the StringTokenizer class in java?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Object-Oriented Programming (2239 questions)

More quizzes with this question

  • Input/Output in Java
  • Abstract Classes and Implementing Interfaces
  • Java String and IO
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy