• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Media Tracker, Socket & string.append ?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Y'day my friend went for exam & had following strange
question.
String s = "abc" ;
s.append("def");
Type the o/p in following Box.
As we all are aware, append()is not present for String class.
What is expected in output box in exam ? Can anybody suggest.
Also, he had questions on Media Tracker & Sockets ? Has
anyone seen any questions on these topics ?
Your reply is greatly appreciated. Thanks.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sachin Nerurkar:
Y'day my friend went for exam & had following strange
question.
String s = "abc" ;
s.append("def");
Type the o/p in following Box.
As we all are aware, append()is not present for String class.
What is expected in output box in exam ? Can anybody suggest.
Also, he had questions on Media Tracker & Sockets ? Has
anyone seen any questions on these topics ?
Your reply is greatly appreciated. Thanks.


Append Works on StringBuffer class and not on String class. In this reference append might refer to concat, and o/p will still be "abc". But if this is in reference to the StringBuffer class then o/p will be "abcdef". Check for the accuracy of the question. If the question is still correct then there will be a compiler error.
The exam may contain questions about sockets or the MediaTracker.
For more info refer to the available MocExams(Khalid's), or look at the Javadoc for the Media Tracker. http://java.sun.com/j2se/1.3/docs/api/java/awt/MediaTracker.html
 
Sachin Nerurkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply.
Can you give me the link for Khalid's mock exam.
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Khalid's mock exam engine is here.
Also take a look at other mock exams at our website.
Good luck!
Ajith
[This message has been edited by Ajith Kallambella (edited August 23, 2000).]
 
Alas, poor Yorick, he knew this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic