Java: Miscellaneous - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Miscellaneous questions from the Java Programming Language.

Sample Question from this online test:

Question: finalize() method works for..........

Option A: Memory allocation

Option B: For free the used memory

Option C: Both A & B

Option D: None of these

To answer, click the "Start This Test" button below.

Start this Test






Comments

Praveen Chaturvedi on 2008-08-21 04:51:36 wrote,

I think that question no 19 is not in its proper format or some portion of code is missing so this question should be reevaluated or if any flaw found in that question must be corrected.

mohit dev on 2009-08-17 21:32:54 wrote,

i think q 20 answer is abstract class link{ }

ARKAJYOTI NAG on 2010-08-14 06:38:34 wrote,

question 1.finalize doesnot free the memory allocated...it rathers helps garbage collector in doing so...abstract class can be subclassed.

mohan raju on 2010-10-22 11:41:01 wrote,

20**

The abstract class can be extends another class(which have abstract methods) and non- abstract class can be extends a abstract class.

final class link{}
so final class is cannot be sub classed or can not extended

suresh kumar on 2010-12-24 19:49:36 wrote,

For 19Q Your answer is wrong, why bcoz u created a parameterized constructor for B class, but creating object with zero argument constructor. It will give compilation error. Check it once and correct it..

suresh kumar on 2010-12-24 19:50:41 wrote,

20Q answer final class link{}, check it once and correct it.

nikhil verma on 2011-02-20 06:39:53 wrote,

plz check out q19,q20.....

manish agrawal on 2011-08-05 16:35:13 wrote,

good questions but check last 2 ...

jainendra pathak on 2011-12-29 05:17:52 wrote,

These question's answer is wrong.Right answer is given below with question number.
Question 14 : C
Question 19 : D ( because compiler error)
Question 20 :B (because final class can not be subclassed but abstarct class u must need to sub class to implement the methods in it.

amitesh Tomar on 2012-01-24 09:43:45 wrote,

Ques no.14,19 1nd 20 answers are wrong pls check it twice before submit it....this msg is for both rohit and getgyan team....

amitesh Tomar on 2012-01-30 10:13:50 wrote,

ques 3,19,20 are wrong....

Ramakrishna Katteragandla on 2012-05-05 06:00:37 wrote,

I think answer for 20th question is wrong provided by GetGyan.

Answer is: B) final class Link{}
Because final classes only do not participate in inheritance.

sakthimurugan rajavel on 2012-06-16 07:25:22 wrote,

Sakthimurugan.R , it was very helpful for beginner and job seeker
at the same time, i would like to share my opinion, some question
have mistake , from last two days i am practice with this web side.
before going to take this test any where, we have to do practice with IDE.
it was very good for me.

shubham kumar on 2013-06-06 08:49:44 wrote,

check 8 and 19
have u gone mad or what??????