Results 1 to 2 of 2

Thread: Object Creation

  1. #1
    Everyman's Avatar
    Everyman is offline Member
    Join Date
    Feb 2012
    Location
    Everywhere
    Posts
    26
    Rep Power
    0

    Default Object Creation

    Could someone please EXPLAIN to me how to do this problem. I don't want you to give me the answer, but to explain it:

    "One of the constructors for PrintStream class has a single OutputStream argument. Assume that dos is a variable that references an OutputStream object. Create a PrintStream object using dos and assign the resulting reference to ps, a PrintStream variable that has already been declared."

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Object Creation

    This is the API for the PrintStream constructor the question is referring to.

    Do you know how to instantiate an object in Java?

Similar Threads

  1. need help on object creation
    By krishanu in forum New To Java
    Replies: 3
    Last Post: 05-28-2011, 05:56 PM
  2. String/ object creation/ efficiency
    By mac in forum New To Java
    Replies: 5
    Last Post: 06-06-2010, 03:57 PM
  3. String Object Creation
    By indranil in forum New To Java
    Replies: 1
    Last Post: 04-13-2010, 12:30 PM
  4. object creation
    By enygma in forum Java Applets
    Replies: 0
    Last Post: 01-05-2010, 11:01 AM
  5. Object creation and construstion
    By abimaran in forum New To Java
    Replies: 8
    Last Post: 12-15-2009, 10:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •