This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!

kedar parundekar

Ranch Hand
+ Follow
since May 10, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kedar parundekar

Hi,

I want to use Type 4 Oracle Driver in servlet.(oracle.jdbc.driver.OracleDriver).

Where I can place classess111.jar file in weblogic server?
14 years ago
FileInputStream fin=new FileInputStream("tata.doc");
int i;
while((i=fin.read())!=-1)
{
System.out.print((char)i);
}

If I run above code for abc.java instead of tata.doc -> then its working fine. Its printing containts of abc.java on the console.
But If I run for tata.doc -> then its printing something different on the console.
Why this happen?
14 years ago
what is difference between windowClosing() & windowClosed() methods from WindowListener?
14 years ago
I want to print Hello with underline on the frame. How its possible?
14 years ago
Q1>How to use
protected String paramString() method of Button class?

Q2> How to use
public void addNotify() method of Button class?

If any one having examples for above methods Pl.help me.
14 years ago
1> class Demo1{
static int i=10;// initialize variable i
--------
-------

}
............................................................

2>class Demo2{
static int i;
static {i=10;}// initialize variable i in static initializer block


}

Q. is there any difference between class Demo1 & class Demo2?
14 years ago
In actual project where we can use static block?
14 years ago
But as per previous reply .....
class Demo
{
public static void main(String[] args)
{
float f1=11.2f;
float f2=11.2f;


if(f1==f2)
{
System.out.println("equal");
}
else
System.out.println("Not equal");

}
}


Above code gives me o/p- > equal?
14 years ago
But why you cant use float in switch case?
14 years ago
Can any one tell me,
Why float is not usefull in switch case?
14 years ago
Hi,

In following program I am using type4 driver & servlet
when I run the application then drivers are loaded as well as connection is established properly.
but run time error is
java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1],
[0], [], [], [], [], [], []
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)

Can any one help me why this error?
Code=>
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;

public class JdbcServlet extends HttpServlet
{
Connection con=null;
Statement stmt=null;
ResultSet rst=null;

public void init(ServletConfig config) throws ServletException
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");// Type 4 Driver
System.out.println("The Driver are loaded");

con = DriverManager.getConnection("jdbc racle:thin:@dbs:1521 rcl","java","java");
System.out.println("The Connection is established");

}
catch (Exception e)
{
e.printStackTrace();
}
}

public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
try
{
res.setContentType("text/html");

PrintWriter pw=res.getWriter();

stmt=con.createStatement();

String sql="Select * from logkedar";

rst=stmt.executeQuery(sql);


while(rst.next())
{
//System.out.println("In Dispaly");
System.out.println("ID "+rst.getInt("id")+"\tNAME"+rst.getString("name")+"\tPASSWORD"+rst.getString("pwd"));
}

}
catch (Exception e)
{
e.printStackTrace();
}
}
}
Hi,
I am having one servlet application.

where to install that application in weblogic 8.1.
Can anybody tell me directory structure in weblogic 8.1
15 years ago
Q ) In case of Entity Bean ->If the primary key is a composite key the primary key class should override the hashCode() and the equals() method.Why?
How session tracking is posssible in jsp?
15 years ago
JSP
Can we include image file into jsp pages with the help of Directive include?
If yes, then which content type required?
15 years ago
JSP