kanu


{ City } mumbai
< Country > india
* Profession *
User No # 20680
Total Questions Posted # 0
Total Answers Posted # 14

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 72
Users Marked my Answers as Wrong # 38
Questions / { kanu }
Questions Answers Category Views Company eMail




Answers / { kanu }

Question { Wipro, 5975 }

hi
how to coneect to mqseries from power builder 8.0. I am not
able to connect to mqseries from power builder 8.0. pls
give me the sample code and what are the steps is required
to connect to mqseries from power builder


Answer

Using CICS Transaction Gateway we can connect MQ Serires
with Power Builder 8.0

Is This Answer Correct ?    1 Yes 2 No

Question { EDS, 4645 }

What are the logging levels in Seebeyond?
what are Securities will Seebeyond provoid for Data level?
Explain EAI and EDI? what Type of EDI you have Used in Your
Project?
How You handle Version Control in your project?
Explain How You Implemented EAI in your current Project?


Answer

There are four logging levels in Seebeyond:
Info,Warning,Fatal,Error
EAI - Enterprise Application Integration, the concept that
integrates two or more desparate applications, systems and
databases, together accorss the network.
EDI : Electronic Data Interchange is a concept that uses
defined templates for a perticular inductry throughout the
country, to communicate adn transfer messages across. For
eg: Health Care Industry : HL7, HIPPA are used throughout
US.
RossettaNet,
Using Version Control Tools like VSS.

Is This Answer Correct ?    4 Yes 1 No


Question { 6703 }

What are different types of EAI Architecture/Models


Answer

The Different tpes of EAI Architectures are:
Hub and Spoke.
Bus Architecture.

Is This Answer Correct ?    9 Yes 4 No

Question { Tech Mahindra, 7338 }

what is multitherading


Answer

Multithreading allows two parts of the same program to run
concurrently.
Thread-based multitasking is having a program perform two
tasks at the same time. For example, a word processing
program can check the spelling of words in a document while
you write the document. This is thread-based multitasking.

Is This Answer Correct ?    14 Yes 5 No

Question { Accenture, 6816 }

Can you make an instance of an abstract class?


Answer

No. The abstract class can not be instantiated. They can
only be declared. The class might choose to do this if the
abstraction it represents is so general that it has to be
specialized in order to be of practical use.

Is This Answer Correct ?    9 Yes 3 No

Question { Excel, 4409 }



what is mean by API ?
Please answer me.
Advance thanks.


Answer

API is Application Programming Interface.
This contain few pre written classes and interfaces in Java
programming language which are used in the classes and the
interfaces that we create while making our customised
programs.
Since they are used and help us in programming , like the
interfaces that we can use and then add our oun code, it is
termed as API.

Is This Answer Correct ?    6 Yes 0 No

Question { CTS, 4093 }

What is queue and what is topic?


Answer

There are two types of JMS Messaging systems. They are
1. Point to Point Messaging
2. Publish Subscribe Messaging

Queue: A queue is a temperory storage of a message used
when working with Point 2 Point Messaging

Topic: A topic is also a temperory storage of a message
used when working with Publish Subscribe Messaging

In Queues, they are connected directly to another queue to
transfer the messages.

In Topics, the subscribers need to subscribe to the topics
to pick up the messages published by the publishers.

Is This Answer Correct ?    7 Yes 0 No

Question { 6457 }

how can we connect to db without using getConnection()
method


Answer

Use Hibernate framework to connect to the database without
using getConnection method.
Hibernate Performing the usual DB operations

Is This Answer Correct ?    8 Yes 5 No

Question { Hexaware, 8471 }

Hi my doubt is that preparedStatement is a interface means
which has no implemenation.plz go thru the code below
String sql = "SELECT * FROM movies WHERE year_made = ?";
prest = con.prepareStatement(sql);
prest.setInt(1,2002);
ResultSet rs1 = prest.executeQuery();

Now setInt and executeQuery how it works since it is
interface it does not have implementation how it works, how
executeQuery returns result from database as executequery
method has no implementation even in Statement interface.


Answer

Since the prepared statement is a precompiled statement and
this SQL statement is sent to the DBMS right away, where it
is compiled. As a result, the PreparedStatement object
contains not just an SQL statement, but an SQL statement
that has been precompiled. This means that when the
PreparedStatement is executed, the DBMS can just run the
PreparedStatement SQL statement without having to compile
it first.

Is This Answer Correct ?    4 Yes 8 No

Question { 5612 }

Explain the role played by Java Virtual Machine in Java
Programming?


Answer

A Java Virtual Machine (JVM) enables a set of computer
software programs and data structures to use a virtual
machine model for the execution of other computer programs
and scripts.
The model used by a JVM accepts a form of computer
intermediate language commonly referred to as Java
bytecode.
This language conceptually represents the instruction set
of a stack-oriented, capability architecture.
Sun has claimed there are over 4.5 billion JVM-enabled
devices

Is This Answer Correct ?    3 Yes 0 No

Question { 4208 }

This is my code i have a doubt

class ab implements a,b
{

public void add()
{
System.out.println("Hi")
}
}

interface a
{
public void add();
}

interface b
{
public void add();
}

in this code i have two interface implemented in the class
has same method.just i want to know which method of
interface implemented in the class. interface a or interface
b? confused me .


Answer

There should be no confusion. Since both the interfaces are
been implemented and both have the same method, it will
work fine and will take any of the method.
Since there is no implementation in Interfaces it is
difficult to know which interface the method is read.

Is This Answer Correct ?    1 Yes 3 No

Question { 3752 }

what happens when we add the objects morethan the size limit
to a hashmap


Answer

When the number of entries in the hash table exceeds the
product of the load factor and the current capacity, the
hash table is rehashed (that is, internal data structures
are rebuilt) so that the hash table has approximately twice
the number of buckets.
As a general rule, the default load factor (.75) offers a
good tradeoff between time and space costs. Higher values
decrease the space overhead but increase the lookup cost
(reflected in most of the operations of the HashMap class,
including get and put). The expected number of entries in
the map and its load factor should be taken into account
when setting its initial capacity, so as to minimize the
number of rehash operations. If the initial capacity is
greater than the maximum number of entries divided by the
load factor, no rehash operations will ever occur.

Is This Answer Correct ?    3 Yes 0 No

Question { 10444 }

what is actual real time using of oops concepts in
projects(Interface,polymorphism.abstraction.........)


Answer

In actual real time using of OOPS concepts in projects
could be all of the following below, based on the program
that is running.
No program can run with out inheriting any class in the
JAVA API.
Many programs can use the util class and the string and int
usage of the variables, thereby making the polymorphism in
to picture.
Similarly with interfaces and abstraction.

Is This Answer Correct ?    3 Yes 4 No

Question { 5223 }

What is the difference between Synchronizing mehtod &
Synchronizing block?


Answer

The Java programming language provides two basic
synchronization idioms: synchronized methods and
synchronized statements.

The more complex of the two, synchronized statements, are
described in the next section. This section is about
synchronized methods.

To make a method synchronized, simply add the synchronized
keyword to its declaration:

public class SynchronizedCounter {
private int c = 0;

public synchronized void increment() {
c++;
}

public synchronized void decrement() {
c--;
}

public synchronized int value() {
return c;
}
}

If count is an instance of SynchronizedCounter, then making
these methods synchronized has two effects:
First, it is not possible for two invocations of
synchronized methods on the same object to interleave. When
one thread is executing a synchronized method for an
object, all other threads that invoke synchronized methods
for the same object block (suspend execution) until the
first thread is done with the object.
Second, when a synchronized method exits, it automatically
establishes a happens-before relationship with any
subsequent invocation of a synchronized method for the same
object. This guarantees that changes to the state of the
object are visible to all threads.
Note that constructors cannot be synchronized — using the
synchronized keyword with a constructor is a syntax error.
Synchronizing constructors doesn't make sense, because only
the thread that creates an object should have access to it
while it is being constructed.

Is This Answer Correct ?    0 Yes 3 No