kinjal


{ City }
< Country > india
* Profession *
User No # 3108
Total Questions Posted # 1
Total Answers Posted # 53

Total Answers Posted for My Questions # 12
Total Views for My Questions # 12678

Users Marked my Answers as Correct # 548
Users Marked my Answers as Wrong # 288
Answers / { kinjal }

Question { HSBC, 18793 }

i have 1000 records in resultset, how to get first 100
records from resultset, because resultset fetch all 1000
records at a time?


Answer

ResultSet.getRow() will give you the row number where the
resultset cursor is in , check for ResultSet.getRow()==100
and then break out of the loop

Is This Answer Correct ?    4 Yes 2 No

Question { TCS, 12475 }

Howmany number of objects we can store in an ArrayList. Is
there any limit?


Answer

the size we specify is the limit

Is This Answer Correct ?    3 Yes 10 No


Question { TCS, 5178 }

What is the basic functionality of DataOutput interface in
java?


Answer

DataOut is a contract for DataOutputStream, whose main
intension is to write primtive data types and String into
stream , by converting them into bytes.

Is This Answer Correct ?    5 Yes 1 No

Question { iGate, 17025 }

Can we inherit the constructor in a Class?please give one
example.


Answer

we cannot inherit constructors.

Is This Answer Correct ?    35 Yes 5 No

Question { 3602 }

What types of integrity are enforced by a foreign-key
constraint


Answer

referential-integrity

Is This Answer Correct ?    9 Yes 0 No

Question { 15608 }

how to change mac address of a system ?


Answer

MAC - Media Access Control
- Also known as physical address (cannot be changed
convetionally)
- (IP Address - logical address - can be changed)
- contains 48 bits or 6 bytes
- Example 00-13-02-C0-14-13
FF-FF-FF-FF-FF-FF - ARP broadcast
Each F (in this case) is an Hexa decimal number is
called "Nibble"
The first 3 bytes (00-13-02) is vendor specific
The second 3 bytes (C0-14-13) - is allocated to the
vendor by the IEEE
- MAC address can be used for security (in Switches)
- MAC address security is extra protection in Wireless
Networks
- MAC spoofing (changing the MAC address) can be used
or both for good and bad purposes (Not recommended -
may create issues in your network)
- Use "ipconfig /all" or "net config rdr" in command
prompt
- to change MAC (NIC properties / advanced TAB /
Locally administered Address / in XP / VISTA)

Is This Answer Correct ?    0 Yes 2 No

Question { 3769 }

hai this is gopi,i have written group-1 main's in
aug-2008.can any body know when will the results of main's
will be announced.Atlease when will be the reserved judgment
of supreme count will dispose.plz help me.


Answer

so no idea i mean no one can say when suprme court will
give its verdict... its playing with aspirants and those
who given exam in 2008

Is This Answer Correct ?    0 Yes 0 No

Question { 15057 }

what is difference between AS2 and AS3.?


Answer

class concepts are also included in this version if u r
using external as file then u must know the class and oops
concept of programming.

Is This Answer Correct ?    16 Yes 2 No

Question { 23239 }

print first nodd numbers in descending order


Answer

void odddesc(int n)
{
for(int i=(2*n-1);i>=1;i=1-2)
cout< }

Is This Answer Correct ?    5 Yes 12 No

Question { 21263 }

Difference between HTML control and Web Server Control?


Answer

HTML controls may not be browser independent but web
controls are always browser independent.

Is This Answer Correct ?    49 Yes 5 No

Question { 63344 }

what is the definition of super stockists???


Answer

Super Stockist is the one who have stock of its own and transfer stock to respective distributor as per distributor's requirements. And for the same company gives commission to the super stockist.

Is This Answer Correct ?    12 Yes 5 No

Question { Google, 5328 }

I would like to submit the following question I was asked
recently during my technical interview at Google.
I'm rephrasing the question to make it clear for everyone
to understand:

- You are going on a one-way flight trip that includes
billions of layovers.
- You have 1 ticket for each part of your trip (i.e: if
your trip is from city A to city C with a layover in city
B, then you will have 1 flight ticket from city A to city
B, and 1 flight ticket from city B to city C.
- Each layover is unique. You are not stopping twice in the
same city.
- You forgot the original departure city.
- You forgot the final destination city.
- All the tickets you have are randomly sorted.

Question are:
- Design an algorithm to reconstruct your trip with minimum
complexity.
- How would you improve your algorithm.

Example:
- randomly sorted:
New York->London
San Francisco-> Hong Kong
Paris->New York
London->San Francisco

- sorted:
Paris->New York
New York->London
London->San Francisco
San Francisco-> Hong Kong


Answer

1) Assuming the data in 2 dim array. (2 Columns: FROM
destination & TO destination)
2) Sort the array (any standard sorting logic) using column
1 i.e. FROM destination.
3) Take "TO" destination value of row 1 and use binary
search to search its match in "FROM" destination column
from row 2 to n
If match found, adjust that row as row 2. (Swap
pointers in place of physical data)
Take "TO" destination value of row 2 and
use binary search to search its match in "FROM" destination
column from row 3 to n
continue this logic till as long as a match
is found.

if match not found.
Resort the remaining unadjusted rows
using "TO destination" column.
Take "From" destination value of
row 1 and use binary search to search its match in "To"
column in all unadjusted rows.
Match must be found otherwise data
incorrect. adjust that row as row -1. (Swap pointers in
place of physical data)
Continue this till end of the
array.

Now you have the sorted list.


I am sure there can better ways to achieve the same.

Is This Answer Correct ?    3 Yes 0 No

Question { 13094 }

The PDU at the network layer is a ________

Packet
Frame
Segment
Bit





Answer

Network PDU is a Frame
IP PDU is a Packet
Transport (TCP, UDP) PDU is a Segment

Is This Answer Correct ?    1 Yes 3 No

Question { 4608 }

what differnt between dual core processer and core 2 dual
processore


Answer

In a Dual Core Processor there is a single processor which
has two cores.

In Core 2 Duo Processor there are 2 Processors which has 2
cores each.

Is This Answer Correct ?    4 Yes 3 No

Question { Infosys, 5780 }

i have file(ps),dont know how many records are there. move
half of the records to 2 files. how can we do


Answer

Question confirmation: Move half-half records to 2 diff. files.

Precondition: You must be knowing how to read record.
Solution:
1. Read file from top.
2. Move each record in alternative file.

Is This Answer Correct ?    14 Yes 5 No

Prev    1   2    [3]   4    Next