Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these class contains the methods print() & println()?
  2. A.
    System
    B.
    System.out
    C.
    BUfferedOutputStream
    D.
    PrintStream

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    print() and println() are defined under the class PrintStream, System.out is the byte stream used by these methods .


Be The First To Comment