• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Beginners Queries  RSS feed

 
Ranch Hand
Posts: 561
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

1> how to write my own Exception class.?

2> By default,how do to get the objects in a collection sorted ?



Help needed ...

--
Deepak Lal
 
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) By extending another exception class.

2) By calling Collections.sort() .

Are these all homework or interview questions? You ought to post your own answers and let people tell you if you're close.
 
Deepak Lal
Ranch Hand
Posts: 561
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Ernest Friedman-Hill. i was not sure of my answers so i was a bit apprehensive hence posted in the forum...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!