Rahul Saple

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

Recent posts by Rahul Saple

Hopefully, it wasn't this doubt / confusion that cause it. Sometimes, fairly or unfairly, the company senses it as being uninterested, and decide to cut-their-loses during the interview process.



No it wasn't that. The third round comprised of C++, SQL and some web related(HTML, CSS) descriptive questions which I wasn't aware of. Before going for the 2nd and the 3rd round I was told there would only be objective questions.
It had been a long time since I had studied the said topics during my graduation years and was unprepared for the 3rd round frankly. However, I sometimes feel that the company expected too much from a fresher.

Thank you all for the wishes. Have a nice day.
12 years ago
Alright the matter has been resolved. But not as was expected. I couldnt get past the 3rd round. Hoping for a better next time. Thanks to all who replied.
12 years ago
Hi! I couldnt find a suitable section to post this, so apologies if i posted in the wrong place.

I have been a loyal Java programmer for the last 7 years. Although I have no real world experience in programming but Java was the language
of choice for almost all my programming attempts, including my major academic project.

The problem is I've been jobless for a good three years and there has also been a gap in my academic career owing to a personal crisis in life.
Now that I'm done with my problems I cannot find a technical job as I wish for. After a long search I finally got a call from a technical company
where they are willing to induct me as a fresher. The only issue is that they are into Ruby on Rails. Although, the prospect of learning a new
language is exciting, I wonder whether all my Java expertise and two Java certifications(OCPJP AND OCWCD) will be all for naught. Will I ever
be able to make use of my Java knowledge in my professional life or will I be forever stuck in a non-Java world? Can anyone suggest to me
what should be my decision. Thanks.
12 years ago
Does this mean that I have to purchase the assignment through PearsonVUE. I created a web account on Pearson, but could find no link that would help me make the purchase. The Oracle page on the certification still points towards prometric for the purchase. Should I go for prometric and would it affect how i submit the assignment and the rest of the certification path as I am planning to give the exam after June 1 but before August 1.
All subclasses of RuntimeException and Error are unchecked exception. And only the exceptions that you encountered while studying for OCPJP would be worth looking into.

join() causes the currently executing thread to move into which state:


It causes the thread to move into a non-runnable state(Waiting for join completion State) which is represented by the constant Thread.WAITING(Enum in the Thread Class)

what does only join() on line#8 mean in the following example


You are right on this one, it waits for itself to finish and waits forever since the join method doesnt take an arguement.
Replacing the join with a one which takes an arguement makes the program deadlock-free.

The thread would now move into a Thread.TIMED_WAITING state for whatever duration it is waiting.
Hope that helped.
Could someone please tell me what exactly is going on behind the scenes. I understand that a two dimensional string array is created and the reference value of that 2-D array is given to a one dimensional Object array reference.
But how is it possible? By that rule the following line of code should compileBut it doesn't. Is it because in Java every Array is an Object? Can anyone shed more light on this?

But when a byte, short or char type variable is initialized with a non-long, compile-time, "Constant Expression" and if the value is within the range of type concerned then ONLY implicit narrowing takes place.(Compile time error otherwise)


The implicit narrowing conversion is only applicable within an assignment context and not any other(including method invocation context)
Also, the polymorphic behavior of the reference 'a' would come into picture only if the method was overridden. Changing the signature of the eat method in the superclass to anything but private would give you the desired result.
The way you have defined the method is neither overloading nor overriding.
The method eat() in class Animal is private and hence is not visible outside of the class(including any subclasses). The eat method of the subclass (Horse) doesn't override the superclass' method as it isn't inherited by the class.
It just has the same name which is what makes it confusing.
Well, I certainly did pounce on the poor compiler to help me out on this one(not the first time). Guess I am the dumb one here.
I thought so too. But then I thought there must be a way out since the compiler doesn't flag such a use. Thanks anyway.
Can we override an abstract method with default accessibility being declared in a public(abstract) class and in a package different than that of its subclass?

Here's the code

A compile-time error is what I get..
Sub.java:2: Sub is not abstract and does not override abstract method print() in A.Abstract

But you also can't declare a method with a wildcard parameter.


You cannot have a generic method where a wildcard is used to define a type parameter. Say like this

The method defined by you is a non-generic method that makes use of generic variables.i.e it does not define a type parameter.

Same is the case for generic classes. One can't use wildcards to define type parameters.