Senthil Kumar

Greenhorn
+ Follow
since Jul 17, 2007
Senthil likes ...
Chrome Eclipse IDE Firefox Browser
Chennai
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 Senthil Kumar

package xxxx
class schema
{
public void method1()
{
boolean validation;
}
}

validation is a local variable, so you cannot access this in your main method. better use validation as Instance Variable.

10 years ago
This is the Syntax.

pack pack1;
class ClassName{

public datatype method(){

statements;
return datatype;
}
}

pack pack2;

import pack1.*;

class ClassName2 {

public static void main(String arg[]){

ClassName object = new ClassName();
datatype var1 = object.method();

}
}
10 years ago
package test1;
public class Schema
{
public boolean validateSchema()
{
boolean verror;
statements;
return verror;
}
}


In your next package, say for example test2,

import the package test1 and access the validateSchema() by creating the Object of that Class(Schema) , now you can get the value verror.
10 years ago
Okay Vijitha Kumara. Thanks


Hi Friends!!..

I heard from my friend that he got a interview question that

createStatement() is in which CLASS ?




i found createStatement() is a method which is in java.sql.Connection interface .

which class has createStatement() code ? or In which class this createStatement() exists.

please let me know.

Thanks in advance.
Hey Rein !

For overriding methods following is a rule :

The overriding method must NOT throw checked exceptions that are new or broader than those declared by the overridden method. e.g. a method that declares a FileNotFoundException cannot be overridden by a method that declares a SQLException, Exception or any other non-runtime exception unless it’s a subclass of FileNotFoundException.


Please also check this http://www.coderanch.com/t/250880/Programmer-Certification-SCJP/certification/please-confirm-about-overriding-exceptions
10 years ago

Rob Prime wrote:I know, but my warning is to prevent any unexpected errors when Michael just copies your little example and is not aware of the possible NullPointerException.



Okay Rob
10 years ago
Friend , I am not giving you the Exact Code.

I gave you an Example. you have to write events for that.

Please have a look on this

http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JOptionPane.html


http://faq.javaranch.com/java/NotACodeMill

10 years ago
Hi Friend !!. Its simple

Use showInputDialog() in JOptionPane to get String

showInputDialog() has different method signatures other than i have used. please see javadoc .

10 years ago
Hi Dude..

I am going to write SCJP 5.0 in Feb 2009.

I need Voucher for that.. if you can help me out.

contact me : mailtosenthil.n@gmail.com
10 years ago