CCCCCCCC C C CCCCCCCCCCCCCCCCCCCCCCCCC C

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

FREQUENTLY ASKED QUESTIONS

SUBMITTED BY D.MEGHA

1.What if the main method is declared as private? -The program compiles properly but at runtime it will give Main method not public. message.

2.What is a package? - To group set of classes into a single unit is known as packaging. Packages provides wide namespace ability.

3.What is nested class? - If all the methods of a inner class is static then it is a nested class.

4.What s the advantage of using System.Text.StringBuilder over System.String? StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it s being operated on, a new instance is created.

5.Why is it a bad idea to throw your own exceptions? Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.

6.What s the C# equivalent of C++ catch ( ), which was a catch-all statement for any possible exception? A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.

7.What s relationship between JavaScript and ECMAScript? - ECMAScript is yet another name for JavaScript (other names include LiveScript). The current JavaScript that you see supported in browsers is ECMAScript revision 3.

8. What does isNaN function do? - Return true if the argument is not a number.

9.What is negative infinity? - It s a number in JavaScript, derived by dividing negative number by zero.

10.What boolean operators does JavaScript support? - &&, || and !

11.What looping structures are there in JavaScript? - for, while, do-while loops, but no foreach.

12. What is J2EE? - J2EE is an environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitiered, web-based applications.

13. What are the components of J2EE application? - A J2EE component is a self-contained functional software unit that is assembled into a J2EE application with its related classes and files and communicates with other components. The J2EE specification defines the following J2EE components:

1. Application clients and applets are client components. 2. Java Servlet and JavaServer Pages technology components are web components. 3. Enterprise JavaBeans components (enterprise beans) are business components. 4. Resource adapter components provided by EIS and tool vendors.

14. Is J2EE application only a web-based? - No, It depends on type of application that client wants. A J2EE application can be web-based or non-web-based. if an application client executes on the client machine, it is a non-web-based J2EE application. The J2EE application can provide a way for users to handle tasks such as J2EE system or application administration. It typically has a graphical user interface created from Swing or AWT APIs, or a command-line interface. When user request, it can open an HTTP connection to establish communication with a servlet running in the web tier.

15. Is HTML page a web component? No. Static HTML pages and applets are bundled with web components during application assembly, but are not considered web components by the J2EE specification. Even the server-side utility classes are not considered web components, either.

1. Tell me about yourself:

2. Do you consider yourself successful?

3. What do you know about this organization?

4. Are you applying for other jobs?

5. Why do you want to work for this organization?

6. Do you know anyone who works for us?

7. What kind of salary do you need?

8. How long would you expect to work for us if hired?

9. What is your philosophy towards work?

10. Why should we hire you?

11. What is your greatest strength?

12. Tell me about your dream job.

13. Why do you think you would do well at this job?

14. What is more important to you: the money or the work?

15. Are you willing to work overtime? Nights? Weekends?

You might also like