Senthil Kumaran

Ranch Hand
+ Follow
since Aug 24, 2008
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 Senthil Kumaran

am getting the same errors as mentioned above, i think i have set my class path , right, somebody please help me, in which part does it goes wrong,
11 years ago
hi, am using jdk6update12, i had set classpath, path, also checked as much possibilities as i can , am getting these same errors for all programs, should i alter any in my programs or uninstall, jdk, i even tried by reinstalling it.





Exception in thread "main" java.lang.NoClassDefFoundError: hell
caused by : java.lang.ClassNotFoundException : hell
at java.net.URLClassloader$1.run<URLClassLoader.java:200>
at java.security.AccessController.doPrivileged<Native Method>
at java.net.URLClassLoader.findclass<ClassLoader.java:188>
at java.lang.ClassLoader.loadClass<Class Loader.java:307>
at sun,misc.Launcher$AppClassLoader.LoadClass<Launcher.java:301>
at java.lang.ClassLoader.LoadClass<ClassLoader.java:252>
at java.lang.Classloader.LoadClassInternal<ClassLoader.java:320>
could not find the main class:hell. program will exit.



lots of compilation error ,somebody help me with this,
11 years ago
i suggest you to re look the toarray() and aslist() methods again,.,
are ternary operators in scjp 6, tell me the links explain me more clearly about boxing,
11 years ago
hi, somebody explain me this program, especially line 9, this question from Inquisition scjp6 trail set mock exam,




the answer is {aaa=2,bbb=1,ccc=1}

is that question mark in line 9 is printing mistake, if it is, i cant understand that boxing & unboxing clearly,

(Jesper Young: Corrected code tags)
hi, somebody explain me this program, especially line 9, this question from Inquisition scjp6 trail set mock exam,


public class testboxing
1. {
2. public static void main(String []as)
3. {
4. String []words = new String[]{"aaa","bbb","ccc","aaa"};
5. Map<String,Integer>m = new Treemap<String,Integer>();
6. for(String word:words)
7. {
8. Integer freq= m.get(word);
9. m.put(word,freq==null? 1:freq+1);
10. }
11. system.out.println(m);
12. }
13. }

the answer is {aaa=2,bbb=1,ccc=1}

is that question mark in line 9 is printing mistake, if it is, i cant understand that boxing & unboxing clearly,
11 years ago
by the way whats the correct answer, as by question number of created strings, would be 4 right, adding tostring method then its five

1.fred,
2.fred47,
3.ed4,
4.FRED,
5.fred.(tostring).
yes mr.jesper i too know that we wont get such annotations, but i was just kidding mr.arkha abt his comment ,
hello Mr.Arkha,.., will they provide us the code with the annotation "@Override" as you mentioned in the exam,
you didnt reply me yet sir, please say me about compiling with notepad2 using cmd prompt,.,
11 years ago
hi, all.
what all should i do to practice programs in my system without using netbeans or eclipse,
i tried with sun site, it has got jdk, kre, jde ee , which one to download & install,
how to make link path to command prompt to compiler,
please somebody helpme,
11 years ago
okay, sir. i follow which you all say, really javaranch is great boon to java world.
THANK A LOT SIR, I never expected that you would reply, really your book is amazing, is that code samples in book stuff alone enough sir. because "am aiming for 100%." no time limit, ready to prepare at any harder level.
okay sir i can understand what you say , i try to my perfection and post if any doubts arise as.