This week's book giveaway is in the Testing forum.
We're giving away four copies of Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples and have Jeremy Kubica on-line!
See this thread for details.

Baskaran Subramani

Ranch Hand
+ Follow
since Jul 30, 2000
Merit badge: grant badges
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 Baskaran Subramani

Thanks Jeroen. I do know about it. I hope Java Architect involves 3 stages and I really doubt that more people would be interested in taking that kind of exams..
If we have an exam, which might focus only on EJB and its related, then it would attract more people and more discussion on EJB..
I am also searching many sites for the same and will update if I find one..
Thanks..
Baskaran.
Hi,
Is there any recognised certification program available that includes EJB mainly in it?

Thanks,
Baskaran.
Hi,
I got rid of this problem, by assigning a self certificate using keytool in jdk1.2.2\bin\keytool utility. then keystore problem was solved. I reinstalled Jdk1.2.2 and J2EE without changing any defaults. then I restarted the J2EE server and I deployed my first EJB appln y'day.
I just want to share this, incase if anyone faces the same problem
Hi,
I am trying to deploy a bean in its container using J2EE server. While doing deploying, it is failing because of access error.(Deployment error:access denied (java.io.FilePermission c:\jdk1.2.2\lib\ext read)
I tried going into the error log file that is generated by the server and it says,'can't find keystore file : C:\WINNT\Profiles\myid\.keystore
any idea how to correct this?
I am very new to EJB and recently passed SCJP.
Thanks for ur help..
Baskaran.
Hello all,
y'day, I passed SCJP with 85%. Initially I was in a tensed mood and the questions that came initially were very long and needed time to understand. From the feedbacks of many SCJP-eans, I really did not want one set of papers which contain Media tracker, Socket, and append method in String. the 2nd question I got was the one which contained append method in String. at that time I thought, if we pray 'it should not come, it should not come.. it should not come ' then it will come.What to do?(anyway, it was not bad!! )
as many SCJP-eans suggested, I assumed that String has append method and answered accordingly. As every one already given feedback abt the type of questions, I am also voting in favour of them.
The questions were to test basics of Java
They tested mostly the concepts rather than the memory power

Here are the rough numbers
overloading/overriding -- 8
operators & assignments -- 8
declaration and access control -- 8
java.awt -- 5
java.lang -- 5
java.util -- 4
language fundamentals --10
flow control and exception -- 6
gc -- 2
thread -- 3
I took 1.30 hours to complete.. 1/2 hour was more than enough to review all the questions. During review i was able to correct '2 answers' . If we make mistakes to known answers mistakenly, then it is BAD .So please don't forget to Review.
Regarding the book, I studied RHE and EXAM CRAM. both are good. to be frank, I didn't even completely read those books once. but I prepared like anything for the last 3 days before the exam using those books. I took many mock exams which are listed in Maha's site. they were very useful.. Many thanks to maha <url> www.javaranch.com/maha </url> (I am proud to be her college mate, I am from CEG, 97 batch, EEE, ANNA UNIV, Chennai. )
I prepared for almost 3 to 4 months. I am working in mainframes side and I couldn't study regularly, as I needed to do my work also. But for the last 2 months I put lot of hard work and especially studied very hard for the last 3 days..
I used to score around 70% to 80% in many of the mocks that I tried. I used to take up notes whenever I made a mistake in mock exams. I compiled them and it was very helpful. Just one day before the real exam, I took RHE, BILLs, Marcus Greens all 3 exams..(totally 5 full exams in one day!!) on an average I scored around 85%.(that is what my final score also).
This exam has given me confidance and faith in me.(I discovered myself after a gap of 3 yrs!! really!!)(u know, after the exam was over, and knowing the result, I was so happy and came to the car , put some junk song with full volume and allowed my mind to dance out of java for the first time after so many days!! really needed isn't? )
I am going to put all my notes in my web page in another day or two. I will update this as soon as it is done..
Good luk all of u!! and thank you very much JavaRanch!! I will keep visiting JavaRanch..
Thanks,
Baskaran.


[This message has been edited by Baskaran Subramani (edited September 12, 2000).]
Hi,
This type of inner class is called local inner classes.(because they are local to the method. and their scope is inside the method). U can't access the local inner class without calling the method which contains the inner class. Inturn, the method will instantiate and invoke the inner class objects. Eventhough the method that contains the inner class is static, the inner class is not static and the members in the inner class are also not static. so to access them, u need to create an instance of the inner class inside the method. (if u try to access the method without creating an instance, like
LocalInStaticContext.pr();//this will fail, saying can't make static reference to ....
Coming to calling the method that contains the inner class, since it is static method, call to the classmethod() can be any one of the following
Outer.classmethod();
classMethod();// calling static method from another static method
Outer o1 = new Outer();//creating an instance of outer class. it needs next line also
o1.classmethod();// Static methods can also be called with an instance
note : local inner classes can access only final variables of its enclosing method, and final variables of method's arguments.(here pls note the declaration of l)
final int l = 200;
eventhough they are free to access its outer class members.( see the variable i, which is not final, inside the inner class)
hope this would clear ur doubt..
Thanks,
Baskaran.

[This message has been edited by Baskaran Subramani (edited September 07, 2000).]
Great Score!! Congratulations!! people like u are a kind of inspiration to me.. Good luk in ur next E-business certification..
Baskaran
Hi,
according to JLS 3.10.5,(pls refer), "" is considered to be a String literal. So it is considerded to be an object (here it is empty!!).
so when u say,


String s = ""; // s is refering to an object of String with empty value


but, when u say,


String s = null;// the reference of s is set to null, meaning, it is not refering //to any object(it is available to GC!!) and null is not a String literal.


thanks,
Baskaran

[This message has been edited by Baskaran Subramani (edited September 06, 2000).]
Both answers a and c are correct!! I verified it.
Baskaran.
Congratulations Arijit!! Good Score!!
thanks for sharing ur experience!!
Good luk for ur new Java jobs!!
Baskaran.
Hi ,
if u look into JLS, 8.8 constructor delclarations, u will get an answer for ur question. I have copied the the reqd part here..


Constructors are invoked by class instance creation expressions (�15.9), by the conversions and concatenations caused by the string concatenation operator + (�15.18.1), and by explicit constructor invocations from other constructors (�8.8.5). Constructors are never invoked by method invocation expressions (�15.12).
Access to constructors is governed by access modifiers (�6.6).
This is useful, for example, in preventing instantiation by declaring an inaccessible constructor (�8.8.8). Constructor declarations are not members. They are never inherited and therefore are not subject to hiding or overriding.


thanks,
Baskaran
---------------------------------------------
[This message has been edited by Baskaran Subramani (edited September 06, 2000).]
Congratulations Naik!!
good luk for ur JAVA life!!
visit javaranch and share ur thoughts with us!!
Have good Party!!
--------
Baskaran.
Hi,
When u create a class(rather subclass!! or child class ) by extending other class(parent), u are inheriting all the available properties from the parent class. This kind of hierarchy is called "is a " hierarchy.

So in OOP terms, NeonLight "is a " Light.(means all NeanLights are also called Light because they have the properties of Light)
The above code will create an object of type Light but it is refering to an object of type NeanLight.(note that the object won't forget the type it belongs to(Light) eventhough it is refering to a different type of object(NeanLight)).
Whenever u try to call/access methods/variables using the above object it will always check the existence of those methods/variables in Light and not in NeanLight. If it is not present it will give compile error.(this behaviour is because that the object won't forget the type it belongs to!!)
Suppose, u have a method in Light and the method is overridden in NeanLight, then during Runtime, it will check whether the method in parent(Light) is overridden in the child(NeanLight). Because, object newlight is refering to an object of NeanLight(child). If it is overridden then it will execute the overriding method in NeanLight. This is called dynamic binding.
Hope this would clear ur Doubt!!
others, Pls correct me if I am worng..
-----
Baskaran
[This message has been edited by Baskaran Subramani (edited September 06, 2000).]
Hello Usha Congratulations!!

Thanks for posting ur experiences and sharing ur Ideas.. that is how we all learn.. Good luk for ur future!! Keep visiting JavaRanch.. I am planning to take the exam early next week.. ur tips are really helpful!! thank you very much!!
---------
Baskaran.
To add one more thing, Both String and StringBuffer classes extends Object and they are at the same level. So if u call a method with a null value, which is overloaded and only takes either String or StringBuffer objects as argument, the compiler gets confused to which method to call!! Because, both are in same level and both can accept null. In case if u have an Object and String as arguments, then it will take String version because it is lower in hierarchy. It holds good for Object and StringBuffer also.

Thanks,
Baskaran.