Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!

Akashh Kumarr

+ Follow
since Apr 11, 2014
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Akashh Kumarr

I completed my graduation this year in Bachelor of Computer Applications (BCA) and have been selected in 3 MNC's. All of them are offering a Post Graduation Program + Job, but they do have a bond. I'm a fresher and have no work experience.

Company 1:
Post: Graduate Trainee
Package: 1.6 Lacs annually (Indian Rupees)
Bond: 2 years
Post Graduation Program: MCA (Master of Computer Application), which is of 3 yrs so I'll have to work for atleast 3 yrs with them.

Company 2:
Post: Student
Package/Stipend: 11,500 Monthly (Indian Rupees)
The stipend would be increased every year, 2nd yr - 14000, 3rd - 19000, 4th - 23000
Bond: 4 years
Post Graduation Program: MS(Master of Science)

Company 3:
Post: Junior Trainee Associate
Package: 1.5 Lacs annually (Indian Rupees)
Bond: 4 years
Post Graduation Program: MS(Master of Science)

I want to be a software engineer and I have keen interest in programming. I'm also an Oracle Certified Associate Java SE7 Programmer.

Please advice/suggest me which company should I join? After working for 4 yrs in Company 2, they're going to give me an experience certificate which will show that I was a student over there, but actually we'll be working on real projects like normal employees and we'll have classes on weekends.

Thanks a lot.
3 years ago
Hey guys,
I passed the exam with 88%.

I've been preparing for it since the last 2 months. I completed Mala Gupta's book in like 15 days and then took a break for like a month. (biggest mistake)
Then again I re-read the entire book after the break and attempted 4 mock tests of Enthuware.

My Experience:

1. Never take a break in between, it will put you back and you'll have to revise your concepts all over again.
2. Book your test when you're fully prepared after giving all mock tests. I booked mine so early that I didn't get time to attempt more mock tests.

For me, the exam had a lot of questions on switch, string and exceptions. Enthuware tests have many questions on wrapper classes which aren't in exam scope.

I scored 73% in Mala Gupta's test.
Then in Enthuware tests, 66%, 83%, 68% and 66%.

3 years ago

Jeanne Boyarsky wrote:

Akashh Kumarr wrote:I tried it without try-catch and it compiles successfully but has a Runtime error, which means it works like Runtime Exception?

No. It works like a checked exception because it is one. Some IDEs are "helpful" and run code that doesn't quite compile. But you should have a compiler error if you aren't catching the exception or declaring it to be thrown. Can you post your example code here?

Got it now.
Yeah, it is a Checked Exception.

I want to give this exam:
Java SE 7 Programmer I | 1Z0-803

So can I buy the voucher from Oracle website here:

Then this voucher can be redeemed at‎ to book the exam right?
I don't want to pay for it directly to Pearson because it's more expensive for me that way, after paying for the currency exchange fee and all.

Thanks for the reply Jeanne.

If a class extends Exception class, then it becomes a checked exception.

void play() throws Exception
throw new Exception();

The above method is directly throwing the Exception (subclass of Throwable). So I want to know if this method should be wrapped in a try-catch while calling it? Means it will work like a checked exception?
I tried it without try-catch and it compiles successfully but has a Runtime error, which means it works like Runtime Exception?

If a method throws checked exception then while calling such method it needs to be in a try-catch right?

Now, suppose this is a method:
void play() throws Exception {}

Now calling such a method would also require try-catch or not? If yes then why?


Paul Anilprem wrote:This question comes from our question bank ( QID enthuware.ocajp.i.v7.2.907 ) and there is a detailed explanation with it:

If a subclass class constructor doesn't explicitly call the super class constructor, the compiler automatically inserts super(); as the first statement of the subclass constructor.

Since the constructor of Bird is private, the subclass cannot access it and therefore, it needs to be made public. protected or default access is also valid.

Please do let us know which part is not clear so that we can improve it. You can also click on "Discuss" button at the bottom of question display screen and post a follow up question directly to us.

thank you,

Thanks a lot for clearing up. Next time, I'll use the Discuss feature.
I only knew that default constructor has implicit call to super class constructor.
Consider the following code appearing in
class Bird {
private Bird(){ }
class Eagle extends Bird {
public String name;
public Eagle(String name){ = name;

public static void main(String[] args) {
System.out.println(new Eagle("Bald Eagle").name);
What can be done to make this code compile? Select 1 option.

1. Nothing, it will compile as it is.
2. Make Eagle class declaration public: public class Eagle { ... }
3. Make the Eagle constructor private: private Eagle(String name){ ... }
4. Make Bird constructor public: public Bird() { ... }
5. Insert super(); as the first line in Eagle constructor:     
public Eagle(String name){         
super(); = name;     

Also, please give explanation to support your answer.

Is it true that all the user-defined constructors implicitly call the super class constructor even if we don't call it explicitly?