View Poll Results: is this question sensible???
- Voters
- 4. You may not vote on this poll
-
silly
0 0% -
good
3 75.00% -
excellent
1 25.00%
Results 21 to 40 of 54
- 08-30-2008, 07:09 PM #21
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Have you ever bought anything that you have then had to assemble? There is a pice of paper (or small book) that comes with the product that tells you how to assemble them, right? Well, think of Java this way then, your Java file is that little book with the instructions, and the class files are the assembled product. It is perfectly legal to place the instructions for three different (but hopefully related) products in the same book, right? Well, that's what you've done here, but each of those instructions (the class definitions) refer to their own individual product (the compiled class file).
- 08-30-2008, 07:12 PM #22
- 08-30-2008, 07:13 PM #23
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Read your other thread, again. You need to find a tutor, for at least a short while.
- 08-30-2008, 07:16 PM #24
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Maybe, if you posted your complete java file, provide the full directory name (full path included) it is located in, and provide the exact and complete command you used to compile it, and provide the full directory name (full path included) of the current working directory when you executed that command, we should be able to tell you where the other two class files are, but that doesn't mean you will understand why they are there.
As I said, find a tutor.
- 08-30-2008, 07:17 PM #25
are u a tutor
- 08-30-2008, 07:19 PM #26
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
I am (or have been at different times in the past), but I can almost guarantee that I am
1. No where even remotely close to your home.
and
2. That you would almost definately not be able to afford what I now charge.
- 08-30-2008, 07:24 PM #27
- 08-30-2008, 07:26 PM #28
- 08-30-2008, 07:26 PM #29
- 08-30-2008, 07:43 PM #30
- 08-30-2008, 07:55 PM #31
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Tell me what you'd be willing to pay. And don't forget, that travel expenses get billed separately.
- 08-30-2008, 09:22 PM #32
On windows: For a test, create two files: c.txt and C.txt in two separate folders.
Then copy one file from one folder to the other folder.
How many files are now in the other folder?
- 08-30-2008, 11:24 PM #33
I tried in linux to copy two files c.txt and C.txt from ext3 file system to FAT32 and it gave me c.txt only on FAT32,and to copy those file from different folders from FAT32 file system to ext3 in one folder,it gave me two files.Look at the screenshots:
The two files in the same folder on ext3 file system:

Copying the two files to usb stick which has FAT32 file system:

Then i created the workplace on usb stick and tried to compile the java project,and had the error,and from the workplace on ext3 file system it compiled and ran flawlessly.
So make the conclusions.Last edited by serjant; 08-30-2008 at 11:42 PM.
- 08-31-2008, 05:25 AM #34
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I don't know what you are talking about. already answered to this. Don't use same class name in naming conventions. When you compile one class file is overwrite from the other and and runtime one of the file can't find. You said that you don't get any compile errors. But most of new Java IDEs warn about that in compile time. In my NetBeans 6.1 it works.
Keep in mind, platform independent and case-sensitivity are completely two different things. You may identify it first to comment in others replay.
- 08-31-2008, 07:25 AM #35
- 08-31-2008, 01:04 PM #36
Senior Member
- Join Date
- Aug 2008
- Posts
- 384
- Rep Power
- 5
I would say, C extends c, so c is initialized first, so it first prints c. After that C is initialized and it prints bc.
This basically is it, I guess.
- 08-31-2008, 05:29 PM #37
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 08-31-2008, 05:33 PM #38
Senior Member
- Join Date
- Aug 2008
- Posts
- 384
- Rep Power
- 5
I'm talking about different class files here.
As far as I know; when a class extends an other class, the class you extend will have it's init() called, before anything else is done. It's like you useA new Test will be constructed before the 'progress continues'.Java Code:new Test();
I die a little on the inside...
Every time I get shot.
- 08-31-2008, 05:36 PM #39
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 08-31-2008, 05:39 PM #40
Senior Member
- Join Date
- Aug 2008
- Posts
- 384
- Rep Power
- 5
Similar Threads
-
String Title case
By bugger in forum New To JavaReplies: 6Last Post: 01-31-2012, 01:21 PM -
MySQL Case Sensitive Problem
By techissue2008 in forum JDBCReplies: 1Last Post: 06-10-2008, 06:23 AM -
Case Based Reasoning
By kbyrne in forum Advanced JavaReplies: 4Last Post: 04-12-2008, 08:51 PM -
problem with operator in case
By jimJohnson in forum New To JavaReplies: 2Last Post: 03-21-2008, 08:22 PM -
Can I set a range in case statement?
By christina in forum New To JavaReplies: 1Last Post: 07-25-2007, 08:41 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks