chandra rekha


{ City }
< Country > india
* Profession *
User No # 1949
Total Questions Posted # 0
Total Answers Posted # 17

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

Users Marked my Answers as Correct # 227
Users Marked my Answers as Wrong # 341
Questions / { chandra rekha }
Questions Answers Category Views Company eMail




Answers / { chandra rekha }

Question { 4999 }

How can you draw using Swing components?


Answer

use the getGraphics method to get an object of the graphics
class and with that object we can perform draw methods.
for example
public class myclass extends...implements ActionListener
{
...
...
....
public void actionPerformed(ActionEvent ae)
{
if(ae==....)
{
Graphics g=getGraphics();
g.drawLine(100,200,150,250);
}
}
.....

Is This Answer Correct ?    2 Yes 0 No

Question { 7041 }

What are tab pans?


Answer

Tab Panes provide the ability to switch betwen various
panels. various panels can be added to a top level
container using tabbed panes.

Is This Answer Correct ?    6 Yes 0 No


Question { Satyam, 18827 }

Explain the differences between an applet and a Japplet?


Answer

Components are basically of two types AWT(abstract window
tool) components and swing components. The swing components
provide better look and feel and they are light weight
components compared to awt components. Swing components are
derived from the javax.swing.* package and they are
prefixed with 'J'(like JFrame,JButton,JApplet)....applet is
derived from the package java.applet.*

Is This Answer Correct ?    35 Yes 13 No

Question { Wipro, 64377 }

Why Java is not purely object oriented?


Answer

Java is a PURELY OBJECT ORIENTED PROGRAMMING LANGUAGE.

Is This Answer Correct ?    36 Yes 268 No

Question { Persistent, 31770 }

what do you meant by Runtime Polymorphism?


Answer

polymorphism -an entity existing in different forms at the
same time. Polymorphism is of two types. Static
polymorphism and dynamic polymorphism. Run time
polymorphism refers to dynamic polymorphism wherein an
entity changes it's form depending on the cirumstances.

Is This Answer Correct ?    47 Yes 13 No

Question { 8842 }

What are different type of access modifiers?


Answer

Access modifiers is different from Access specifiers. The
access specifiers tells whether member data\methods\classes
of a class can be accesible or not by other
classes\subclasses\packages whereas the modifiers tells how
the memberdata\methods\classes can be used by other classes.

The access specifiers available in java are
Public,private,protected,default(friend or package).
The modifiers available are

static:can be applied to member data,methods,inner
classes.used to define class variables and methods that
belong to the a class but not to any particular instance of
class.all the variables share the same static method.

final:(variables,methods,classes) final modifier indicates
that the variable\method\class cannot be modified in any
other classes\subclasses\packages.

abstract:(classes) used to declare classes having same
properties and methods.abstract classes are used to derive
classes of the same type.

native:(methods) indicates that the code is out of java
runtime environment,written in some other programming
language other than java.

synchronized:(methods) used to control access to a
particular method in a multithreaded java program.

Is This Answer Correct ?    4 Yes 3 No

Question { 11166 }

How do you know which index a table is using?


Answer

sp_helpindex command gives the information of the indexes
on the table

Is This Answer Correct ?    10 Yes 1 No

Question { 7194 }

How will oyu test the stored procedure taking two parameters
namely first name and last name returning full name?


Answer

create procedure prctrial @firstname char(5),
@lastname char{5}
as
print @firstname+''+@lastname

prctrial Miss,Happy

output....Miss Happy

Is This Answer Correct ?    2 Yes 1 No

Question { 8045 }

How do you find the error, how can you know the number of
rows effected by last SQL statement?


Answer

select @@error'Error'
select @@rowcount'Rows'

Is This Answer Correct ?    4 Yes 0 No

Question { 9075 }

What are the type of joins? When do we use Outer and Self joins?


Answer

Types of joins:
->Inner join
->Outer join->1.Left Outer join
2.Right Outer join
->Cross join
->Equi join
->Natural join
->Self join

Outer join:-When we need all rows from one table and some
rows from the other table

Self join:-When one row in a table correlated with other
rows in the same table

Is This Answer Correct ?    6 Yes 0 No

Question { TCS, 24629 }

Which virtual table does a trigger use?


Answer

Triggers use magic tables(update and delete tables)

Is This Answer Correct ?    9 Yes 35 No

Question { 6138 }

Questions regarding Raiseerror?


Answer

Raiseerror command is used to generate user defined error
messages.Syntax is as follows: RAISEERROR
('Message',sevierity,state)
message is the user defined error message
sevierty defines the seriousness of the error (1 to 25)
state defines the number of places from where the error
might get generated

Is This Answer Correct ?    4 Yes 0 No

Question { 9165 }

How does JDBC differ from ODBC?


Answer

JDBC is the name of the protocol which is used to connect
to the database whereas ODBC is the mechanism that is used
to retrieve data from the database....JDBC is called the
protocol and ODBC the subprotocol...

Is This Answer Correct ?    6 Yes 0 No

Question { FIC, 10707 }

what is difference between abstraction and interface?


Answer

A class becomes an abstract class when it has atleast one
abstract method(a method with no definition).The major
difference between abstract classes and interfaces is that
an abstract class can contain both methods with zero
definition as well as methods with definition.But an
interface is one in which all the methods are with no
definition.

Is This Answer Correct ?    5 Yes 0 No

Question { 31800 }

waht happens when a return type ,even void is specified for
a constructor?


Answer

The constructor has the same name as that of the class to
which it belongs to. When a return type or void is
specified,no error occurs.It will be considered as a method.
for example:
public class myclass
{
public myclass()
...
}this is considered as a contrustor
whereas,
public class myclass
{
public void myclass()
{
...
}will be considered as a method.....

Is This Answer Correct ?    33 Yes 3 No

 [1]   2    Next