DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments" http://www.daniweb.com/community/rules
Do some research. If you hit something you don't understand after trying a few searches, come back here with your specific question.
the answer is right. Object is the base of everything in Java. but the answer given by JamesCherrill is more important. there is no textbook or course that 'll ever try to teach OO development in Java without mentioning the fact that Object is the base of every other class in Java, and that it's extended by all.
if the OP won't even take the time to figure this one out, it means he never tried reading his book, googling, or anything else, I'm afraid.
Yes, indeed, but the saddest part here is that he's a member of daniweb since January 2011, having 51 posts already. By now, he should have already read at least some programming books, and if not, well...
Before anyone else creates more distraction with the Object class, the Java Language Specification has 21 references to the term "top level class" and every single one corresponds to the definition right at the top of chapter 8 "Classes"
A top level class is a class that is not a nested class.
Incidentally, not one of those references matches the answer "Object"
So although in general conversation you may refer to Object as being the top (level) class, the JLS reserves that term for one very specific meaning, and it's a brave Java programmer who disagrees with the JLS.
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...