BalaMurali dhar

Ranch Hand
+ Follow
since Apr 14, 2012
Merit badge: grant badges
For More
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 BalaMurali dhar

Jvm could not find the class
11 years ago
The code is Here table name is Student.
import java.sql.*;
public class SelectTest {
public static void main(String[] args)throws Exception {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection('jdbc: odbc:oradsn","scott","tiger");
ResultSet rs = st.executeQuery("select * from student");
while(rs.next())
{
System.out.println(rs.getString(1)+" "+rs.getString(2)+" "+rs.getString(3));
}
rs.close();
st.close();
con.close();
}
}
you can use in one method only. You cannot use in another method
11 years ago
public class BeatBox {

JPanel mainPanel;
ArrayList<JCheckBox> checkboxList;
Sequencer sequencer;
Sequence sequence;
Track track;
JFrame theFrame;

public static void main(String [] args) {
BeatBox box =new BeatBox();
}

public void buildGUI() { //code here }
11 years ago
old edition will be sufficient.
yes, Method overloading is a type of polymorphism
11 years ago
we can prevent deadlock in multithreading by using synchronization keyword
11 years ago
The code is like that
class Salmon extends Thread
{
public static long id;
public void run()
{
for(int i = 0;i<4; i++){
//if(i==2&& id ==Thread.currentThread().getId()){
if(i==2){
new Thread(new Salmon()).start();
throw new Error();
}
System.out.println(i + " ");
}
}
public static void main(String[] args)
{
Thread t1 = new Thread();
id = t1.getId();
t1.start();
}
}
11 years ago
whenever your creating a project this is the root directory create a project folder. Inside the Project folder create WEB-INF Folder, classes folder & Lib folder . Inside the classes folder you write java class. Inside the Lib you have to put jar file. Inside the WEB-INF you can put web.xml, JSP & HTML
11 years ago
what are the things to be required to be in forum. Be specific when your asking?
11 years ago
JSP
JSP & HTML should be inside the WEB-INF
11 years ago
you have not set the classpath properly
11 years ago
there is a problem with your code.
if your getting error 404 then there is a problem with your coding
11 years ago