• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

please slove my java questions as i am preparing for interview.. very urgent..help me

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Test Questions

1) The following code is used to connect to an external service and send it a message. If either of the connect() or send() methods fail, an exception of type Exception is thrown. Modify the code so that the functionality is the same but the Connection is always closed.

Connection c = new Connection();
c.connect(�service�);
c.send(�message�);
c.close();











2) What is the standard tool use for generating documentation pages from doc comments.



3)What is the name of the class library most commonly used when generating unit tests.



4)A way to enable a class (that implements public void run()) to run a thread is to have it extend the Thread class. How else can we enable a class to run a thread.



5) How can you destroy an object in Java?




6) What would be the obvious Java collection type to use to store objects for fast retrieval by a key and which gives the ability to traverse the objects in key order.



7) What class of object would you use to hold a string of characters that needed to be frequently modified by insertions, deletions and appends.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ease up. There is nothing "urgent" for us about you waiting until the last minute to prepare for your interview.
All of these questions are extremely basic Java questions. You could answer all of them by spending a few minutes searching or browsing the Java Tutorial.
 
Oh the stink of it! Smell my tiny ad!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic