Techsan India
Q: Object Oriented Programming (OOP) ?
 Java is a computer programming language that is concurrent, class-based and object-oriented. The advantages of object oriented software development are shown below:
Q: What is Singleton class?

A: Singleton class control object creation, limiting the number to one but allowing the flexibility to create more objects if the situation changes.

Q: What do you mean by Constructor?

A: Constructor gets invoked when a new object is created. Every class has a constructor. If we do not explicitly write a constructor for a class the java compiler builds a default constructor for that class.

Q: List the three steps for creating an Object for a class?

A: An Object is first declared, then instantiated and then it is initialized.

 Q: What do you know about Java?
A: Java is a high-level programming language originally developed by  Sun Microsystems and released in 1995 . Java runs on a variety of platforms, such as Windows, Mac Operating System , and the various versions of UNIX.
Q: What are the supported platforms by Java Programming Language?

A: Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX/Linux like HP-Unix, Sun Solaris, Redhat Linux, Ubuntu, CentOS, etc.

Q: List any five features of Java?

A: Some features include Object Oriented, Platform Independent, Robust, Interpreted, Multi-threaded

Q: List some Java keywords(unlike C, C++ keywords)?

A: Some Java keywords are import, super, finally, etc.

Q: What is Serialization and deserialization?

A: Serialization is the process of writing the state of an object to a byte stream. Deserialization is the process of restoring these objects.

Q: What are use cases?

A: It is part of the analysis of a program and describes a situation that a program might encounter and what behavior the program should exhibit in that circumstance.

ASP.NET Questions

ASP.NET supports three different development models:
Web Pages, MVC (Model View Controller), and Web Forms.

1. The ASP.Net application codes could be written in either of the following languages:
Ans.  C# 2. Visual Basic .Net 3. Jscript 4. J#

 2. What’s the use of Response.Output.Write()? 
We can write formatted output using Response.Output.Write().
3. In which event of page cycle is the ViewState available?
After the Init() and before the Page_Load().
4. Which protocol is used to call a Web service?
HTTP Protocol
5. Can we have multiple web config files for an application?
6. What is the difference between web config and machine config?
Web config file is specific to a web application where as machine config is specific to a machine or server. There can be multiple web config files into an application where as we can have only one machine config file on a server.
7. Explain role based security ?
Role Based Security used to implement security based on roles assigned to user groups in the organization.
Copyright © 2012-2013 Techsan India. All rights reserved.