Kush Kush

Greenhorn
+ Follow
since Apr 27, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Kush Kush

Problem :-
My web.xml is :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<web-app>
<servlet>
<servlet-name>Hello</servlet-name>
<servlet-class>Hello</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Hello</servlet-name>
<url-pattern>/Hello</url-pattern>
</servlet-mapping>
</web-app>
My FILES stored in :
/webapps/Test/WEB-INF/classes/Hello.java
/webapps/Test/WEB-INF/classes/Hello.class
When I run Tomcat i reached succesfully upto index.html when i enter my name on page then i get following error statements:-
**
1.type Status report
2.message /classes/Hello
3.description The requested resource (/classes/Hello) is not available.
**
DO ANYBODY HAVE SOLUTION ?
19 years ago
You can store Vector temporarily into Memory by appending ResultSet object into vector by Vector.add(Object) method.
You can also use Hashtable to do the same.Hashtable uses Key-pair structure.In your case Key will be the Query and the Value will be the ResultSet object. Use Hashtable.put(Object key,Object value) method to do so.
19 years ago
Can we write a lines of text in File by a Java Program,Given The file must be readable by any user who simply opens it.Note It should not contain any special characters in between words of file ?
19 years ago
class Outer
{
public class Inner
{
//inner class code
}
public static void main(String lal[])
{
System.out.println("");
H h=new H();
Inner i=h.new Inner();
}

In above code what is the use of Public (non - static )Inner Class ?
19 years ago
Can a Synchronised method be overridden by child class's method ? if yes what would be the signature of that method ? Will it be necessarily synchronised method ?
19 years ago
You can try out following code to take input from Keyboard:
import java.io.*;
class Input{
public static String getInput(){
String result ="";
try{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
result = br.readLine();
}catch(Exception e){
System.out.println("Error Reading");
}
return (result);
}
}
This is static method on class Input
You can use it as :-
//Your code
String text=Input.getInput();
int i=Integer.parsenInt(Input.getInput());
--- // Your code
[ May 07, 2004: Message edited by: Kush Kush ]
19 years ago
Java Virtual Machine(JVM) is program that executes the bytecode generated as a result of compilation whereas Java Runtime Environment(JRE) provides an environment in which Java applications are compiled & executed that is JRE incorporates JVM within itself.To execute any Java Program or Application you must have JRE which is installed when you install jdk
19 years ago
What is the use of transient variables ? When shouls variable be declared transient ? Do it have any demerits ?
19 years ago
Thanx Stefan but what do you mean by Performance ? Making a class final increases its performance ?
19 years ago
Why String & StringBuffer classes are declared as Final ?
19 years ago
USE
Class.forName(path to your class)
It will load ur class.
Note Class is a Class itself and forName is static method.
19 years ago