Unlimited, many class store in single dll

whooshribbitΛογισμικό & κατασκευή λογ/κού

2 Δεκ 2013 (πριν από 3 χρόνια και 6 μήνες)

82 εμφανίσεις

DOTNET

How many classes can a single .NET DLL contain?

Unlimited
,
many class store in single dll

What is serialization, how it works in .NET?

Serialization is the process of Converting Object into Bytes...it may be done by two different
way..Using SOAP
and BYTE.

Serialization is when you persist the state of an object to a storage medium so an exact copy can be
re
-
created at a later stage.

Serialization is used to save session state in ASP.NET.

Serialization is to copy objects to the Clipboard in Windows

Forms

Serialization is used by remoting to pass objects by value from one
application

domain to another
.

Can i change private assembly to shared assembly?How?

Yes, You can change from Private to Shared.


-

Get the SN using sn.exe


-

Add the SN to the Asse
mbly


-

Put the Assembly in GAC.

What is cts and cls?

What is wrong with the following line of code?


Server.Transfer("Default.htm");

Ans: You can’t use the Transfer method with HTML pages. It works only with .aspx pages.

JAVA

What are different types of
access modifiers?

public
: Any thing declared as public can be accessed from anywhere.

private
: Any thing declared as private can’t be seen outside of its class.

protected
: Any thing declared as protected can be accessed by classes in the same package and
s
ubclasses in the other packages.

default

modifier

: Can be accessed only to classes in the same package.

What is the difference between this() and super()?

this()

can be used to invoke a constructor of the same class
.


whereas

super()

can be used to invok
e a super class constructor.

What modifiers may be used with top
-
level class?

public, abstract and final

can be used for top
-
level class.

In what sequence does the finally block gets executed ?

If you put finally after a try block without a matching catch
block then it will be executed after the
try block

If it is placed after the catch block and there is no exception then also it will be executed after the
try block

If there is an exception and it is handled by the catch block then it will be executed
after the catch
block

What return type does constructor have ?

Constructor doesn’t have any return type.


PHP

WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP?

Here are three basic types of runtime errors in PHP:


1. Notices:

These are trivial, non
-
critical errors that PHP encounters while executing a script
-

for
example, accessing a variable that has not yet been defined. By default, such errors are not
displayed to the user at all
-

although you can change this default beha
vior.


2. Warnings:

These are more serious errors
-

for example, attempting to include() a file which does
not exist. By default, these errors are displayed to the user, but they do not result in script
termination.


3. Fatal errors:

These are critical e
rrors
-

for example, instantiating an object of a non
-
existent class,
or calling a non
-
existent function. These errors cause the immediate termination of the script, and
PHP's default behavior is to display them to the user when they take place.


Internal
ly, these variations are represented by twelve different error types
.

How can we submit a form without a submit button?

If you don't want to use the Submit button to submit a form, you can use normal hyper links to
submit a form. But you need to use some
JavaScript code in the URL of the link. For example:


<a href="javascript: document.myform.submit();">Submit Me</a>

What are the differences between require and include, include_once

in PHP
?

Anwser 1:

require_once() and include_once() are both the functi
ons to include and evaluate the specified file
only once. If the specified file is included previous to the present call occurrence, it will not be done
again.


But require() and include() will do it as many times they are asked to do.

JavaScript

What are JavaScript types?

Number, String, Boolean, Function, Object, Null, Undefined.

What is a prompt box?

A prompt box allows the user to enter input by providing a text box.

How about 2+5+"8"?

Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so
78 is the result.