java cert questions

wxdqz

New Member
I was not able to get answers for some of the questions java mock tests canany body help me regarding these.q. A socket object (s) has been created and connected to a standard internetservice on a remote network server. Which of the following gives suitablemeans for reading ASCII data, one line at a time from the socket?A. s.getInputStream();B. new DataInputStream(s.getInputStream());C. new ByteArrayInputStream(s.getInputStream());D. new BufferedReader(new InputStreamReader(s.getInputStream()));E. new BufferedReader(new InputStreamReader(s.getInputStream()),"8859-1");There is only one correct answer according to the question.q. In the GridBagLayout when does number of rows and columns decided.I mean is it after the GridBagLayout obj is created or after the GridBagLayoutConstraints class is created Or when is it.q. can one stop a thread indefinately ? i know we can use sleep or wait butit will be only for some time ???
 
Top