Fahad Muhammad

Greenhorn
+ Follow
since Nov 10, 2010
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 Fahad Muhammad

So, START learning those topics using solely the book is enough for the exam?
Hi,

For someone who has just passed OCA exam and right now learning advanced core java topics namely:
Collections, Generics and Multithreading.

Is the book enough for learning such topics or do I need to learn that topics before reading the book?

Thanks in advance.
Welcome Kathy, Bert and Elisabeth.

I am very happy to know that the book was released.
I used the OCA edition and it was a great experience.
Thanks.
I had the same question until I found this very helpful extracted info from the book:
http://media.pragprog.com/titles/javacomp/preface.pdf

Read "Who Should Read This Book" section.
And do "Are You Ready? Try the Self-Assessment"

Best luck!
5 years ago
Hello Anne & Zak and welcome to the Ranch!

What makes the book unique that you can use instead of depending just on free online resources for such technologies?
Do you cover JavaScript in the book and to what degree?

Welcome again and best wishes!

Fahad Muhammad
Thanks Campbell for your reply.

The idea came from a test question in OCA Java® SE 8 Programmer I Exam Guide by Kathy Sierra Bert Bates. specifically, question 9 of chapter 6 self test.

I don't know if it is OK to include the full question here but the statement
s = " " + i;
was inside a for loop where s is created by concatenating " " with the int variable i.
And the question was to estimate how many objects will exist in memory after the loop is done assuming the garbage collector dose NOT run.

The provided answer state that " " is created once and reused in every loop iteration.
The resulting String (s) of the concatenating will be an object created on every loop iteration.

My question is about the int i that is concatenating with " ".
will this variable  be converted to a string and then concatenated with s.
If this the case what about that converted string i, does is it live in memory until the loop is done. If this is the case, the number of objects created will be double the provided answer.
Let say we have this simple statement:



Does the number 9 converted to a String object and concatenated with the String
making a total of 3 objects created on the heap?
Or not?
Hello all,

I am learning Spring and I need some clarifications.

From my learning I know that beans are Spring term for POJOs.
And that they are ordinary Java Objects that are instantiated, assembled and managed by Spring.

My questions are:

What do we mean by that a bean is managed by spring?

What should be defined as a bean in Spring? Should we define everything as a bean?
6 years ago
I am new to Spring I have a similar question.
Is knowing Standard Java EE required to learn Spring and to what degree?
Or Is Spring a completely different approach for developing Java EE applications?
6 years ago
Hi Ashish Sarin & J Sharma,

What are the main changes in the fourth edition?
Also, Is the book available as a soft copy to buy online?

Thanks
6 years ago
Welcome J Sharma & Ashish Sarin.
6 years ago
I also noticed if I change

to

it works.
I have a simple JMS sender and receiver.
I use jboss-amq as the broker.
They use jndi to lookup values.

jndi.properties

 

Using these values I got the following exception:

   

I noticed that if I add the following to the jndi file

   

The two programs runs without errors

So, What is the problem with first approach?
Other than core java.
Are there mandatory areas of knowledge before diving into JMS and MQ?
Is it possible to jump straight to JMS and MQ from core java (SE)?
Thanks in advance.
I passed the exam today with 96% - 2 incorrect answers.

I used SCJA Certified Java Associate Study Guide - by Robert Liguori and Edward Finegan as the study guide.
Plus Whizlabs exam simulator for practicing.

Best regards,
Fahad Muhammad
12 years ago