This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

Prosenjit Banerjee

Ranch Hand
+ Follow
since Dec 18, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Prosenjit Banerjee

Junilu Lacar wrote:@Les see the JLS section I cited for the explanation. Compound assignment statements of the form op= have an implicit cast to the type of the variable being assigned to.


I have understood the rule. But what can be the motivation behind it? I mean, if there is a possibility of some data to be lost if the programmer is not very careful, does not that go against the motto of Java?
4 years ago

Junilu Lacar wrote:No, it's not a bug. It's specified in the JLS here http://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.26.2


Thank you so much for such a prompt reply. And yes, it has been stated so clearly in JLS. Thank you again.
4 years ago
I knew that Java compiler protects the developers from data truncation. But what's happening here?



Why not Java even warned me about the data truncation? Is this a bug from Java?
4 years ago

Ulf Dittmer wrote:Some operating systems (like Android) allow this. Are you set on JME or can you choose some other OS?



Actually I want to write the app so that it runs on most of the cell phones.
10 years ago
Damn! Then can you please tell me what language should I use to create an application that can access inboxes of the cell phones and also can edit and send messages from cell phones?
10 years ago
Isn't there anybody to answer my question? Experts kindly help me.
10 years ago
Hi friends,
I am an absolute newcomer in the JME technology. I want to create an application for cell phones which will give the users some special interface to manage all the SMSs (messages) in the cell phones. Mostly it will expand the abbreviated words written in a message and the user will also be able to create a message in a spacial way. Can these type of applications that manages the messages of a cell phone in its own way be made using JME?
10 years ago
Perhaps I didn't get my point cleared.
I mean, cannot compile any code. Not that there is any typo in the code. I meant I cannot run the tools. I just cannot find any tool to use there.
For example, the deploytool I cannot use. There is not file named deploytool in the Glassfish. Perhaps deploytool is there in j2ee 1.3 but not in Glassfish. So, how can I compile my beans and how can I deploy them using Glassfish?
Dear Sir/Madam,
I have bought Head First EJB (Eighteenth Indian Reprint February 2008) and now I have started reading it. But I found huge differfence using software. The Sun technology seems to have changed a lot form when the book was written. I have downloaded and Installed Glassfish. But I cannot compile, deploy and run the source codes from the book. I don't know what to do. Please please help me.
Moreover, I wonder, is it possible to mannually (i.e. without using any kind of tool that hides what it does) deploy (copy and pasting files from the Adevelpment folder to the server's deployment folder) the Bean in Glassfish as I did the Servlets in Tomcat?
I am in trouble as I am stuck in the very first chapter. I hope I won't be dissapointed.
I think I got it. But partly it is still unclear.
I got the fact that ServiceLoader mechanism needs the driver jar file to keep a file named java.sql.Driver in the META-INF\services folder and the content of the file should be name of the driver class that java automatically loads at the run time.
I was trying the Derby database. So looked at its java.sql.Driver file (in the derby.jar) and its content is:


What I did not get is that if org.apache.derby.jdbc.AutoloadedDriver is being loaded if I don't manually load any driver, how the driver org.apache.derby.jdbc.EmbeddedDriver gets loaded automatically if I don't use the forName() method?
I have read it. It says,


Applications no longer need to explictly load JDBC drivers using Class.forName(). Existing programs which currently load JDBC drivers using Class.forName() will continue to work without modification.

When the method getConnection is called, the DriverManager will attempt to locate a suitable driver from amongst those loaded at initialization and those loaded explicitly using the same classloader as the current applet or application.



I just can't understand why applications no longer need to explicitly load JDBC drivers? How java finds it out? What does it mean by drivers loaded at initialization?

Please help me.