Deepti Bhatia

Greenhorn
+ Follow
since Oct 19, 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 Deepti Bhatia

Hi,

I am planning to give IBM LOT 959 and need guidance material for same. Mock exams to prepare.

Please help.

I have experience in portlet development.

Regards
Have tried with ClassLoader.getSystemResourceAsStream but the value returned is alwayz null.
12 years ago
Hi,

I have a requirement to load XML from the classpath. Could you please guide.
12 years ago
I have query here -

Can All nested classes be declared static ?

Regards,
Hi,

Have to configure 2 flows in spring based upon customer. These flows have different flowIDs.

My question is How does one configure to switch between flowID's based upon customer type using spring.

Regards,
14 years ago
Hi ,

I have a query on BigDecimal. Recently have received a review comment which says ' things like BigDecimal.valueOf(100.00)); are not 1.4 compliant' ' .

As per the BigDecimal API this is part of 1.4. Could you please explain if I miss out on something.

Regards,
Hi,

Below is a question from javabeat.

41)which are all valid method(s) inserted independently will allow program to
compile

a public Object get() { ... }
b public Long get() { ... }
c public void set(Object arg) { ... }
d public void set(Long arg) { ... }
e public Number get() { ... }

Ans - b,d,e

why not a,c ?
"Since the compiler doesn't know which exact type it is, so it won't allow you to add elements to it... "

Thanks Ankit for clarifying.

Does this means an interface cannot be used to specify type in generics ? You can never use <Interface> ?

1. The program will not compile.
2. The program will compile but will throw run-time exception.
3. The statement 'X' manifests that objects of type Instrument as well as sub-types can
be added to the list 'allInstruments'.
4. It is not possible to add any type of objects to the list 'allInstruments'.
5. The only possible element that can be added to the list 'allInstruments' is 'null'.

Ans - 1,5.

As per me answer is 3 since <? extends Instrument> means subtypes are allowed to be instantiated. Please clarify.
Added junit jar in User Entries as suggested. It is not able to load the test class now.

Class not found com.pck.TestClass
java.lang.ClassNotFoundException: com.pck.TestClass
at java.net.URLClassLoader.findClass(URLClassLoader.java:492)
at java.lang.ClassLoader.loadClass(ClassLoader.java:606)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:327)
at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:425)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
14 years ago
Program run with eclipse Run -> Junit.

Source - >CSRT-presentation/src/main/java
- >CSRT-presentation/src/test/java
Classes - > CSRT-presentation/target/classes

Classpath entry - > <classpathentry kind="lib" path="C:/Documents and Settings/user/Desktop/LIB/junit-3.8.1.jar"/>
14 years ago
Hi,

I am getting the below error when the junit test class is run. The junit jar has been configured on the classpath.

java.lang.NoClassDefFoundError: junit.framework.Test
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:127)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadTestLoaderClass(RemoteTestRunner.java:324)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.createRawTestLoader(RemoteTestRunner.java:314)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.createLoader(RemoteTestRunner.java:309)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.defaultInit(RemoteTestRunner.java:287)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.init(RemoteTestRunner.java:210)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:195)
14 years ago
Hi,

I need to use same populated bean for 2 jsp's. The 1st jsp shows the contents in readonly mode while other shows them as editable.
Please advise if it is not violation of UI standards.

Regards,
14 years ago
JSP
Got the solution.

Regards,