mahindhan


{ City } chennai
< Country > india
* Profession * ceo
User No # 125107
Total Questions Posted # 38
Total Answers Posted # 63

Total Answers Posted for My Questions # 42
Total Views for My Questions # 25892

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 0
Answers / { mahindhan }

Question { 659 }

What are the difference between now and current_date in mysql?


Answer

NOW
NOW() give you the current date time in the format 'YYYY-MM_DD HH:MM: SS'
CURRENT
CURRENT_DATE() will only give you the current date in format "YYYY-MM_DD"

Is This Answer Correct ?    0 Yes 0 No

Question { 821 }

What are the two ways of implementing multi-threading in java?


Answer

Multi threaded applications can be developed in Java by using any of the following two methodologies:
1. By using Java.Lang.Runnable Interface. Classes implement this interface to enable multi threading. There is a Run() method in this interface which is implemented.
2. By writing a class that extend Java.Lang.Thread class.

Is This Answer Correct ?    0 Yes 0 No


Question { 805 }

Can a class be a super class and a sub-class at the same time? Give example.


Answer

If there is a hierarchy of inheritance used, a class can be a super class for another class and a sub-class for another one at the same time.
In the example below, continent class is sub-class of world class and it’s super class of country class.
public class world {
..........
}
public class continenet extends world {
............
}
public class country extends continent {
......................
}

Is This Answer Correct ?    0 Yes 0 No

Question { 745 }

Do I need to import java.lang package any time? Why?


Answer

No. It is by default loaded internally by the JVM.

Is This Answer Correct ?    0 Yes 0 No

Question { 837 }

Why java is not 100% object-oriented?


Answer

Java is not 100% Object-oriented because it makes use of eight primitive data types such as boolean, byte, char, int, float, double, long, short which are not objects.

Is This Answer Correct ?    0 Yes 0 No

Question { 811 }

Define a java class.


Answer

A class in Java is a blueprint that includes all your data. A class contains fields (variables) and methods to describe the behavior of an object. Let’s have a look at the syntax of a class.
class Abc {
member variables // class body
methods}

Is This Answer Correct ?    0 Yes 0 No

Question { 657 }

Why is java robust?


Answer

Java is termed as robust because of the following features:
– Lack of pointers: Java does not have pointers which make it secure
– Garbage Collection: Java automatically clears out unused objects from memory that are unused
– Java has strong memory management and supports dynamic linking.

Is This Answer Correct ?    0 Yes 0 No

Question { 715 }

. How .NET can support multiple languages?


Answer

.NET can support multiple languages because the .NET language code is compiled to Microsoft Intermediate Language (MSIL). The generated code, as a result, is a powerful code that runs in a .NET environment. After compilation, the languages do not remain a barrier and the code can call or use functions of various other languages too.

Is This Answer Correct ?    0 Yes 0 No

Question { 756 }

How can you manage pagination on a page using .Net?


Answer

.Net gives you an option of using the pagination option in DataGrid control. To do this, you have to set the number of records for a page, and it will take care of pagination by itself automatically.

Is This Answer Correct ?    0 Yes 0 No

Question { 605 }

Explain different types of cookies in .NET?


Answer

There are mainly two types of cookies in .NET. One is a session cookie that resides on the client machine for a single session till the time the user logs out. The other is a persistent cookie that resides on the user machine for a specified period fixed for its expiry, which could be an hour, week, or a month.

Is This Answer Correct ?    0 Yes 0 No

Question { 837 }

.What is Marshaling?


Answer

Marshaling is the process of transforming types in the managed and unmanaged code.

Is This Answer Correct ?    0 Yes 0 No

Question { 837 }

.What is Marshaling?


Answer

Marshaling is the process of transforming types in the managed and unmanaged code.

Is This Answer Correct ?    0 Yes 0 No

Question { 717 }

What are the different parts of an Assembly in .Net?


Answer

The different parts of an Assembly are:
•Manifest – Also known as the assembly metadata, it has information about the version of an assembly.
•Type Metadata – Binary information of the program.
•MSIL – Microsoft Intermediate Language code.
•Resources – List of related files.

Is This Answer Correct ?    0 Yes 0 No

Question { 682 }

What are the fundamental objects in ADO.NET?


Answer

There are two fundamental objects in ADO.NET:
•DataReader- connected architecture.
•DataSet- disconnected architecture.

Is This Answer Correct ?    0 Yes 0 No

Question { 591 }

What is the difference between a Hash Table and a Dictionary?


Answer

The main differences are listed below.

Dictionary:
Returns an error if the key does not exist
No boxing and unboxing
Faster than a Hash table

Hashtable:
Returns NULL even if the key does not exist
Requires boxing and unboxing
Slower than a Dictionary

Is This Answer Correct ?    0 Yes 0 No

Prev    1    [2]   3   4   5    Next