Vishal K Patel

Ranch Hand
+ Follow
since Oct 20, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vishal K Patel

what is binding doing internally?
How it will affect the normal life-cycle of JSF page?
where and when should I use it?

Example:
I have 5 JSF components in my page. On some action...I need to set some properties of those components from the backing bean.

now...if I am doing with the scope request and using binding...i can set all the properties of all the components of that page.

or...with session scope and without binding i can do the same.

which one is the better approach?

Is it good idea to keep all the states of all components stored in session??? or bindind could be the good alternative???
17 years ago
JSF


o/p : 20.79



o/p : 20.889999999999997

i think in 2nd case o/p should be 20.89...!!!
and actually i want the o/p 20.89.
what could be done..?

help me out...
Thanks Mahesh...!!!

I am very much new for EJBs.
I am going to start from scratch.

What do you suggest?
SCBCD 1.3 or SCBCD 5.0?

I am totally blank regarding this, I need your help.

SCBCD 1.3 is out dated now?
[ April 15, 2007: Message edited by: Vishal K Patel ]
I am planning to write SCBCD exam.

What is the latest version of this exam?
and,
Which book is preferred to begin?
and let me know all good titles, I can refer to prepare this exam.

I am awaitng for the reply.

Thanks.
yes....its working fine...!!!
here,

int i;
is declared in the main() method.
So its a local variable.
and you are trying to create another local variable in for() loop block.
but its a local to the main() method also.

And that is of course not allowed....!!!
That's why the compiler is complaining.
[ April 08, 2007: Message edited by: Vishal K Patel ]
Hi Mahesh,

Thanks for your interest....!!!

Another thing I really would like to know is :
[1] Content of this certification.
[2] What should be the stronger area?
[3] Knowledge of EJB is required or UML and design patterns are enough?

Please let me know...!!!
[ April 04, 2007: Message edited by: Vishal K Patel ]
Hello Ranchers...

I wanted to know...
that,

SCJP is mandatory for SCEA?

I mean to say...Can I have a complete path to rich SCEA?
But here they are saying that "Whatever" and "who" both are created in the pool...?
Is it correct?
We are using new to create them....!!!

Have you read the options [A]and [D]?
What should be the correct?
Here is one question I found in one book....!!!

Q .Consider the following lines of code:
String s1 = "Whatever";
String s2 = new String("Whatever");
String s3 = new String ("Who");
Which of the following statements is true? (Choose all that apply.)


A. The compiler will create two strings Whatever and Who and put them in the pool, and
there will be a string Whatever and Who created at runtime.

B. The compiler will create two strings Whatever and Who and put them in the pool, and
there will be no string created at runtime.

C. The compiler will create two copies of Whatever and one copy of Who and put them in
the pool, and there will be strings Whatever and Who created at runtime.

D. The compiler will create one copy of Whatever and put it in the pool, and there will be
strings Whatever and Who created at runtime.

E. The compiler will create a string Whatever and put it in the pool, and there will be a
string Who created at runtime.



Ans : According to me " D " is the answer.

but they are saying that the answer is " A ".
and justifying in this way....

The compiler creates a string when it sees a string literal, but it does not create duplicates. The
statement with the new operator will be executed at runtime, and the string will be created even if
an identical string was created by the compiler.


Can anybody explain their justification?

[ March 22, 2007: Message edited by: Vishal K Patel ]
[ March 22, 2007: Message edited by: Vishal K Patel ]
Hi...

I need those materials for SCJP 1.5..!!!

You can reach me on : [email protected]

Awaiting for materials provided by you.
Bye.
Here, if We will assign the value between -128 to 127 then and only then,
Both reference variable will refer to the same object as you are saying.

Here you are assigning 1000, so it refers to the different object.

Try it with,
As I know String and all the wrapper classes are immutable.
Hi Mona...

If you are thinking that you are passing an oblject of String class,
any change in the method should reflect to the original one.
But here you are forgetting one very important thing and that is,
String instances are "immutable".

so when you will say,



internally, it wiil create new String object like this,



And as java doesn't support pass/call by referance...
now it is refering to another object in the heap.

so the orginal string is still : "String".
Well...

It is producing z = 10.
Actually I am expecting the same result from


My understaing is,
z will get incremented after the whole expression will be executed.
So in the next iteration z will have the latest value.

Can you make me clear...?
[ February 26, 2007: Message edited by: Vishal K Patel ]