Aafreen Moinuddin

Greenhorn
+ Follow
since Feb 16, 2006
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 Aafreen Moinuddin

We are trying to develope a java-application, which converts the adobe form objects into xml. We went through the couple of websites which say about converting pdf to xml, but with no luck. If somebody can help us in this matter, it would be appreciated. We are developing APIs in java to convert pdf to xml.

Here We need to read the data from the PDF .For Example ,think that pdf contain s a Label & a Text box (with values), so we need read the exact values.... through some JAVA API ??? ..



Thanks in advance,
[ October 31, 2006: Message edited by: Aafreen Moinuddin ]
Sure ..Why Not... When Can we get Started then?
Hey guys.... Can anyone explain about How Jsp differs from Java ?

Thank you
17 years ago
JSP
Can we write a method inside method?
17 years ago
Hey Guys i tried compiling the following class n it gives "string version" as the output


So my question is why does it choose to give " string version" instead of "object version" when both the methods can equally accept the null value given in the argument?

...... Any one?


public class Aclass {

public void amethod(Object o){
System.out.println("object version");

}
public void amethod(String s){
System.out.println("string version");

}

public static void main(String[] args) {

Aclass A = new Aclass();

A.amethod(null);
}
}
[ March 14, 2006: Message edited by: Aafreen Moinuddin ]
18 years ago
Phew! That was easy .. Thanks Faisal
18 years ago
Hey Guys can anyone explain in breif about how does the following example gives a run time error?




class JMM101 {
public static void main(String[] args) {
int i = 0;
while (i++ < args.length) {
System.out.print(args[i]);
}}}


java JMM101 A B C D E F



Please Help!
18 years ago
Thanks Amy.... iam glad
18 years ago
in the sentence below

Anonymous classes are typically used for creating objects on the fly in contexts such as in a return statements....... blah blah

what does the phrase ' on the fly ' mean?
18 years ago
Thanks a lot joni!
18 years ago
but in the above case cast operator had already been given so that the compiler is told that sub is a object of Base
[ March 04, 2006: Message edited by: Aafreen Moinuddin ]
18 years ago
given the following program

interface I1 {} interface I2 {}
class Base implements I1 {}
class Sub extends Base implements I2 {}
class Orange {
public static void main(String args[]) {
Base base = new Base();
I1 i1 = base; // 1
Sub sub = (Sub)base; // 2

}}

its true that at line 2 it gives an run time error because because a super class cannot be assigned to sub class However it also true that a super class can be assigned to a sub class through an explicit cast (downcasting) which is done here in this case at line 2 .. so why does it still gives an error during runtime?


Can anyone answer ? please?
18 years ago
can anyone tell me how the following program works ..?
----------------------------------------------------------------------
public class TernaryAssertion{
public static void assertBounds(int low,int high,int value){
assert (value > low ? value < high : false)
: ( value < high ? "too low" :"too high");
}

public static void main(String[]args){
assertBounds(100,200,150);
}
}
-----------------------------------------------------------------------
[ February 28, 2006: Message edited by: Aafreen Moinuddin ]
18 years ago
Can anyone explain the following context simple& brief ....particularly the statements in bold text (some how i find it very contradictory)

"Assertions should not be used to validate information supplied by a client. A typical example is argument checking in public methods.
[Argument checking is part of such a method 's contract,which could be voilated if the assertions were disabled] .

Another drawback is that assertion failures can only provide limited information in the form of an 'Assertion error',about the cause of any failure .

Approriate argument checking can provide more suitable information about erroneous arguments, in the form of specific exceptions such as ILLEGAl Argument Exceptions , Index OUt of BoundsException, or NullPointerExceptions".
18 years ago