User Profile
Collapse
-
What have you done so far? Can you please share your logic (that gave an error)? We can try to improvise in your own approach with the suggestions if applicable for any best practices. -
Hi gautam,
Though at first site, you may sound to be correct, it is NOT true. Yes, interfaces can not be instantiated directly as below
The above codes throws a compiler exception saying that an interface...Code:interface MyInterface{} class MyClass { public void myMethod() { MyInterface myIntObj = new MyInterface(); } }Leave a comment:
-
Look at the lines 75 to 77 in your code pasted above.
Whereas the object rentIt is of type LuxuryCarRental . But the class LuxuryCarRental does not have a method 'display'. Hence the error.Code:LuxuryCarRental rentIt = new LuxuryCarRental(name, zipCode, carSize, daysRented, chauffer); rentIt.display();Leave a comment:
-
Hi,
I guess the links to the below tutorials don't work.
Learn to Program with Ruby - by Chris Pine
Programming Ruby - Pragmatic Programmer's Guide
Looks like the pages are moved. Kindly check them out.Leave a comment:
-
This will be a very precise and need of the hour tutorial for the beginners. Appreciate your efforts Atli :)Leave a comment:
-
Hi Nepomuk,
Yes, there are quite a few alternatives towards the betterment. Not just for JSP, but also for Servlets you have Struts, Spring etc.,
However, I have suggested these for starting off with the Java EE based web application, which the other frameworks are also based on.Leave a comment:
-
Just to add with what Exequiel had said, you should ensure you have a Web Server (example Apache) running on your computer that helps the PHP scripts to be processed.Leave a comment:
-
Adding on top of the suggestion given by Nepomuk that helps you to interact with the database using JDBC (within Java), you should also read Servlets and JSP (Java Server pages) to start with simple web application that helps you write a web application for the user friendly and easy navigation of application.Leave a comment:
-
To keep it simple, both work on the back end. The difference lies in how and where the operate in the back end.
Struts is a framework for easily developing Java EE based web applications. Hibernate is a framework for mapping your (ORM - Object Relational Mapping) Database objects into your Java objects.Leave a comment:
-
In addition to the suggestions and tips given by r035198x, to answer your actual question, you can add the "<a href="">LinkFro mDatabase</a>" to your content retrieved from the database.
Tip: You should actually escape the double quotes using \.Leave a comment:
-
Hi,
You yourself have an answer. If you are specifically looking for a different version of JRE, directly download it from http://oracle.com.
However, as far as any software is concerned (not just Java), whatever you are able do to with version x, should definitely be doable with version x+1.Leave a comment:
-
simply, a program which is in need of something (resource/data) and able enough to contact/approach a server program that serves the data is called a Client. An application being developed for the same is called as Client Application.Leave a comment:
-
yes of course. but I felt proceeding with the process itself as I can get hold of the entire process so as to destroy/kill at once completely! Thus, have chosen this way.Leave a comment:
-
Yes, that is what I also meant. Apologize if it was not reflected in the words.Leave a comment:
-
Hi r035198x,
Hope you are doing fine. Thanks for the reply!
Yes of course. You are right. Just because a method is deprecated does not mean that we can't/should not use. However, this usage is strictly NOT suggested by Sun itself as they are potentially dangerous (wrt the locks the objects might have acquired) Reference URL -> http://java.sun.com/j2se/1.5.0/docs/...precation.html.
...Leave a comment:
-
process.destroy() does not kill the subprocess
Dear All,
I have an issue with destroy() method of java.lang.Proce ss class. All what I am trying to do is, controlling the execution of one program through another. Let's say, Program B has to be executed conditionally through Program A based on the commands it gets from the user. Let's say, we have two inputs, "start" and "stop" to drive the Program B.
I have thought of various alternatives.... -
Thank you very much Pilgrim.
You are absolutley right and I do agree with the complexity its gonna take than the manual verification. Anyways, I just have to go with the plain, non-conditional version of sql script by bearing the overheads....Leave a comment:
-
Thanks amit. It was for writing a SQL Script when setting up the new module for the existing database instance. There are times/situations wherein we need to atler the existing tables according to the new module. That's the reason I just had a thought compared to what MySQL gives this facility....Leave a comment:
-
Thank you Pilgrim33 and amitpatel for having replied immediately.
I do agree with the alternatives for "really checking" before you do with your DDL statements. But it should be at the cost of this quite-lengthy-and-expensive operation?
In MySQL, we have,
Don't we have a similar-and-easy way to accomplish the same in Oracle?Code:CREATE TABLE IF EXISTS MyTable (..);
Thanks,...Leave a comment:
-
Does an "IF Exists" clause exist in Oracle?
Hello All,
I remember in MySQL we do have "IF EXISTS", 'IF NOT EXISTS" clause/keyword in the DDL statements (CREATE,DROP etc.,) to avoid unnecessary bombing.
Do we have such facility in Oracle? If not is there any other easy way to achieve it? I am using Oracle 10g. I have been searching through google and also in oracle.com but unable to get it out.
Thanks,
Raghavan alias Saravanan...
No activity results to display
Show More
Leave a comment: