Nakul P. Patel

Greenhorn
+ Follow
since May 31, 2011
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nakul P. Patel

Hi All,

I want to pass the SCWCD exam.
I wanted to know few things,
1) Is there any difference between the version 1.5 and 6? I meant to say it seems like both the exams covers same topic.
2) I would like to go for lattest version EE 6(IZO 899).Please suggest me a reference book for it.

I am having dilemma about the Head First for servlet and jsp. I love the head first series, but is it enough to read only this book to pass EE 6 ?

Please let me know.
Thanks in advance
Hi Martin,

First of all many congratulations.
I also want to go for OCWCD 1.6(IZO 899), but little confused.
As you have described in your experience that you read the Head First Servlets & JSP twice. But i believe this book is for passing the OCWCD 1.5 version.
I mean to say is it enough to read this book to pass this exam?

Please reply.

Thanks,
Nakul Patel
10 years ago
I am new to weblogic.I am trying to configure liferay with weblogic. I want to put liferay dependency jar files inside lib folder of domain.

Now i am confused because in Oracle>Middleware>user_projects>domains there are two folders that contains lib folder.

1)base_domain
2)my_domain.

Can someone let me know where should i put all dependency jar files?
11 years ago
[quote=

I think you can use the 2 parm method to get what you want.



I am doing this for learning purpose.I intentionally want to use method with three param.
[quote=

And when you calling binary search, which list are you using? The natural order one or the reverse order one?

Before doing search on list, the list must be sorted.Does it matter which one list i am using to search?
11 years ago


I want to perform search operation on List of objects.The sorting of ascending and descending is working fine facing exception in implementation of binarySearch()
I am preparing for OCPJP. Please let me know briefly(if possible) where i am making mistake.

Thanks in advance
11 years ago
After sorting List in ascending and descending order i want to invoke binarySearch method. But it not working as i have implemented comparable.
I could have done this by implementing comparator but i have such requirement in my project Please guide me.
11 years ago
Hi,

I want to clear OCPJP 6 Certification.
I have prepared for that but i don't know how to register for exam.

Please let me know how to register through pro- metric center.

Hi,
I have registered(and paid) for OCPJP exam this month.
For some reasons i want to cancel this exam and have decided to apply for it next month.
Is it possible to get my money back?

Please advise me.
I am facing financial crisis.

Thanks.
I have String : "extend cup end table"

case 1:If i use patter "e.+d" it will find() match: extend cup end

case 2:If i use patter "e.+?d" it will find() match: extend end

Can someone please let me know what is difference between ".+" and ".+?"

I know that + is one or more and ? is one or zero. But i am not able to understand how does it work.

Thanks. Nakul
11 years ago
I have String : "extend cup end table"

case 1:If i use patter "e.+d" it will find() match: extend cup end

case 2:If i use patter "e.+?d" it will find() match: extend end

Can someone please let me know what is difference between ".+" and ".+?"

I know that + is one or more and ? is one or zero. But i am not able to understand how does it work.

Thanks. Nakul
11 years ago
Hi,
@ Tony Docherty:"The PrintWriter(Writer writer) constructor can be used to pass in any type of Writer and so can be used where you don't know/care what type of Writer you will be writing to."

Can you please tell me what are different types of Writer in java.io package?
If possible please write small line of code,it will help me(us) to understand in better way.



11 years ago
I got confused when i tried following code.

try{

File file = new File("write.txt");
FileWriter writer = new FileWriter(file);

PrintWriter printWriter = new PrintWriter(writer);
printWriter.println("pqr");
printWriter.println("jkl");
printWriter.close();

PrintWriter printWriter = new PrintWriter(file);
printWriter.println("abc");
printWriter.println("xyz");
printWriter.close();
}

what is the basic Difference Between following PrintWriter(File file) and PrintWriter(FileWriter writer) need example to explain
and in what scenario i should use these classes
11 years ago
Even after printing value of a:

a= value.meth(a);
System.out.println("Value of a after call:"+a);

the value of a is changed.

I request you all to run this code.

Please let me know if you have any idea.
11 years ago
Example of pass by value:
public class Passbyvalue {

public static void main(String[] args) {

int a=15,b;

System.out.println("Value of a before call:"+a);
Value value = new Value();
value.meth(a);
System.out.println("Value of a after call:"+a);

}
}


public class Value {

void meth(int i){
i *= i;

}
}
Here the value of a remains as 15.
If i perform same operation with return value the value of a is changed.


public class Passbyvalue {

public static void main(String[] args) {

int a=15,b;

System.out.println("Value of a before call:"+a);
Value value = new Value();
value.meth(a);

b= value.meth(a);
System.out.println("Value of a after call:"+b);
}
}


public class Value {

int meth(int i){
i *= i;
return i;
}
}
here value of a is changed to 255.It is pass by value and it changes the value.
Can you explain it HOW?
11 years ago
Hi all,
I am new to jsp and need help.
I want to make a jsp file in which there are 8 combo box elements.
Now I am Includeing :" <%@include file="comboBox.jsp"%>" file in other various .jsp files of my projects.
But each time the requirement varies, i do not want to use all those combo box elements in other .jsp files.
Some time i need to use only 2 combo boxes and some time 3 and .......etc.I don't want to use all combo boxes every time.
Is there any way?
Please reply soon and explain in brief if possible.
Thank You.
12 years ago
JSP