GeekInterview.com
Answered Questions

Java reflection

Asked By: QAJava | Asked On: Dec 13th, 2007

What is reflection and its use in Java?

Answered by: nkamuni on: Dec 19th, 2007

Reflection is commonly used by programs which require the ability to examine or modify the runtime behavior of applications running in the Java virtual machine. This is a relatively advanced feature a...

What is the difference between one dimensional array and multidimensional array?

Asked By: kaliswaranbsc | Asked On: Oct 24th, 2007

Answered by: Answer on: Mar 29th, 2012

A one-dimensional array is a structured collection of components (often called array elements) that can be accessed individually by specifying the position of a component with a single index value.Two...

Answered by: nkamuni on: Dec 26th, 2007

A single array denotes only row data but two dimentional array denotes the data in the form of rows and colums.

What is a difference between equals & ==

Asked By: meenal | Asked On: Sep 25th, 2007

Answered by: nkamuni on: Dec 19th, 2007

equals is the method of object used for comparing the objects where as == is used for numberic comparisions

Answered by: sarathi trichy on: Oct 25th, 2007

= means the  assingment
EX:
a=10;
b=a;
then b=10;
== means equality checking
a=10;
b=10;
if(a==b)
System.out.println("equal");
else
System.out.println("not equql");

Why Java is not 100% object oriented?

Asked By: Harihara dash | Asked On: Mar 29th, 2006

Answered by: pradeep choubey on: Oct 3rd, 2011

because in c language we use primitive data type such as int , char , boolean but c is not object oriented language. but java use all primitive type object so we can say that java is not 100 % oop lang..

Answered by: abhi_csedas on: Aug 5th, 2009

Java is an OOP language but not a pure Object Oriented Programming Language.There are six qualities to make a programming language to be pure Object Oriented. They are: i) Encapsulation/Data Hiding ii...

If you want to pass information into a program when you run it then command-line arguments are to main( ).

Asked By: Interview Candidate | Asked On: Dec 10th, 2005

A) trueb) false

Answered by: nkamuni on: Dec 19th, 2007

True.

A paramter is a variable defined by a method that receives a value when the method is called.

Asked By: Interview Candidate | Asked On: Dec 10th, 2005

A) trueb) falseexplanation: a argument is a variable defined by a method that receives a value when the method is called.

Answered by: nkamuni on: Dec 19th, 2007

I agree with Neeraj's statement.

Answered by: realneeraj on: Dec 28th, 2005

Well, An argument is what you pass to a function while calling. And parameter is a variable defined by the function to receive that value.

The variable receiving the value returned by a method must also be compatible with the return type specified for the method.

Asked By: Interview Candidate | Asked On: Dec 10th, 2005

A) trueb) false

Answered by: nkamuni on: Dec 19th, 2007

Yes, it is true. The variable returned by a method must be compatible with the return type.

Answered by: madhavi.v on: Jun 24th, 2006

it is True the avriable receiving the value must be compatible.

In this example class-var = new classname( ); class-var is a variable of the class type being created

Asked By: Interview Candidate | Asked On: Dec 10th, 2005

A) trueb) false

Answered by: tarun_1984 on: Jun 19th, 2009

In this Question in the given example class-var is nothing but an object of class classname

Answered by: ksrikanth5g on: Jul 24th, 2008

no its not create a object

In Java, all class objects need not be dynamically allocated

Asked By: Interview Candidate | Asked On: Dec 10th, 2005

A) trueb) false

Answered by: nkamuni on: Dec 19th, 2007

I think it is true. Because, we use initalize some variables which are not dynamic.

For eg: int i = 10;

Answered by: bujji on: Mar 24th, 2006

False

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: