Ebay Interview Question for Front-end Software Engineers






Comment hidden because of low score. Click to expand.
0
of 0 vote

Checked Exceptions and unchecked exceptions

- Tejas June 13, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

there are two types of exceptions in java
1> checked exceptions
checked exceptions are also known as compile time exceptions as they are identified during compile time of the program. Exception and all the subclasses of Exception class are checked exceptions
2> Unchecked exceptions
Unchecked Exceptions are also known as runtime exceptions as they are identified during the runtime of the program. class RuntimeException and all the subclasses of RuntimeException are unchecked Exceptions like indexoutofboundexception.

- kamal June 14, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Kamal, RuntimeException is a subclass of Exception and so your statement that "all subclasses of Exception are checked" is wrong.

- Samba July 04, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

UnChecked Exceptions: Thos exceptions which are bugs in the program and when hit can cause the program to be irrecoverable. These are subclasses of RuntimException. Example are NullPointerException

Checked Exceptions: Exceptions that are not in your immediate control. FileNotFoundException, Input error exceptions etc.
Subclass of Exception

- Anonymous August 08, 2011 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More