kumar_java

Greenhorn
+ Follow
since Jan 12, 2002
Merit badge: grant badges
For More
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 kumar_java

Hi,
I am not an expert in dual booting.. but tried for over six months to get it right. Finally, I have seem to get it somewhat right.
My home machine I dual boot Red Hat 7.2, 98, and 2000 server. The boot loader to boot Red Hat is the NT boot loader.
If you are having all the OSes on one hard then NT takes the first partition.
So, install Red Hat on another partition. Make sure that u install the GRUB or LILO into the linux partition NOT the primary partition. Next make sure u create a boot floppy.
After installation, boot red hat using the boot floppy.
Copy the 512 bytes boot sector of the linux partition into a file and into a floppy using..
dd if=/dev/hda3 bs=512 count=1 of=/mnt/floppy/linux.bin
In my machine the linux boot sector in on hda3. You need to change for your partition. Next linux.bin is an arbitrary file name. You can give any name u want.
Next, boot into 2000. Copy the linux.bin file into C: or anywhere u want (I prefer C . Edit your boot.ini file and add a line at the end of it like:
C:\linux.bin="Red Hat Linux 7.2"
where C:\linux.bin is the location of the file in my machine. Of course, you can give any name u want for your "<text>" above.
Next, time when u restart ur machine, you should be able to boot linux using NT boot loader.
Hope this helps. Please note that I am just a beginner to Linux.
22 years ago
Hi,
I am relatively new to programming in Linux. Although have installed and configured Red Hat since its 5.1 version... However, no strong programming experience on Unix expect for one Java project. Mostly on NT.
I was wondering whether I should start off by following the LPI level 1 certification and gradually proceed. I thought of starting to do RHCE but found that it is better to do LPI and then proceed to RHCE.
Any advice for a beginner??
Thanks,
magesh.
22 years ago
Hi,
Did the exam today morning. Passed on first try. Thanks everybody.
Only used JQ+ and Java Programming Language book to study after I found errors in the first edition of RHE.
Got 6 questions on threads and 6 on awt. Mainly code based questions. Only 2-3 direct api questions.
What next? RHCE, and SJCD/SJCWD.
Thanks,
Mageshkumar M.
22 years ago
I swear this compiles just fine when //1 is commented out ???
correction for above statement.
Shucks....
I am using JBuilder 5.0 to compile this and it compiles and runs that piece of code. (I swear this compile just file when //1 is commented out ???)
I just checked via the command line which I should have checked in the first place. It complains on both occasions.
I feel tragically embarrassed about this.
Can somebody explain what's going on here??
interface IN1
{
String val = "44";
}
interface IN2
{
String val = "55";
}

class SimpleInner
{
String val = "66";
}

public class MoreInner extends SimpleInner implements IN1, IN2
{
{
System.out.println(val); // 1
}
class MyInner1
{
{
System.out.println(val); // 2
}
}
public static void main(String[] args)
{
new MoreInner();
new MoreInner().new MyInner1();
}
}
Code will compile only if //1 is commented out. This I can understand.
But why does the compiler allow //2 ???
When //1 is commented and run, output is 66. But how does the inner class 'MyInner' of 'MoreInner' access variable val in the super class of MoreInner, WHEN MOREINNER itself cannot access it.
I would love to hear an explanation for this.
Thanks.
class Base
{
static class Inner
{
public static void main(String[] args)
{
System.out.println("Inner");
}
}
}

public class MainTest extends Base.Inner
{
}
when MainTest is run, it prints 'Inner'.
Ok, by the rules of inheritance and etc.. I can arrive at an answer.
But I thought this main is a special method, and that it should be associated per class.
I want to know if this is a bug??
Thanks.
Hi,
According to the syllabus,
'Make appropriate selection of collection classes/interfaces to suite specified behaviour requirements'
Does this mean I have to know the api of Collection, List, Set, SortedSet, SortedMap and all the implementation classes (incl Vector & Hashtable).
Please advice on this.
Learning this api is the only problem I have.
22 years ago