Sudar Shan

Greenhorn
+ Follow
since Aug 20, 2015
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 Sudar Shan

I think I have now understood a bit; .getName() works on an instance of a Class and .class works on the Class name itself. So, I am assuming that ".class" is similar to a static method.

Since the example I had posted is not actually instantiating the class but only wants to get the class name, .class has been used. (right?)

8 years ago
Thank you Henry for the response and also for fixing my code tag.

Does that mean that .getName() and .class give the same result (except for primitive type where .getName doesn't work)?
8 years ago
I am looking at the following mapreduce example and don't understand what does the word count.class signify in the main method. What is the .class for?
8 years ago
yes but a quiz! And grant a cow for someone who answers all questions on it! ...nah, I am digressing. Its ok. Good day guys.
8 years ago
thank you all for your answers. I will be more careful when I post the next time.

BTW, I think there should be a quiz on HowToAskQuestions.. for new forum members ;)
8 years ago
apologies Pawel, I will try to provide more information next time. And as you said, I am missing the override to toString method.

I would also like to know why no argument constructor is bad.

8 years ago
No, the code did not compile. However, when I declared the array as "Employee[] newEmployee = null", I got it compiled but it threw the run time error.

I have been coding in IBM i for 8+ years (COBOL and RPG ). Java is very new to me, please excuse if I ask way too basic questions. I believe in writing silly programs like these. This makes me understand the concepts and to be able to identify the issue if it were to occur again (though you guys might facepalm)

I have removed the no argument constructor, something isn't right yet:
8 years ago
Hi ,

I am not sure if I have grasped the object concept well enough.

I am trying to create a Generic Object Streamer Class to test my understanding on 1) Generic Classes 2) ObjectOutputStream.

I have seen few discussions on objects needing to be initialized. But I don't understand why, or whats happening behind the scenes in terms of memory/pointer.

8 years ago
Hi forum members,

I found this forum very friendly and thought I will join here. Here I am, after several attempts to get myself a display name.

I am new to Java programming. My motivation to learn java is to move towards big data. I have been programming for about 8 years in IBM iSeries, that means that I don't have object oriented programming experience. And I did not study programming at my college.

I have googled about the need for Java to dive into big data and I have started learning Java. But I prefer to do a mock Java project that would encompass important concepts. Can someone guide me, or assign me a mock project.

Thank you.
8 years ago