What is the difference between one dimensional array and multidimensional array?
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...
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 & ==
equals is the method of object used for comparing the objects where as == is used for numberic comparisions
= 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?
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..
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...
A) trueb) false
True.
A paramter is a variable defined by a method that receives a value when the method is called.
A) trueb) falseexplanation: a argument is a variable defined by a method that receives a value when the method is called.
I agree with Neeraj's statement.
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.
A) trueb) false
A) trueb) false
In this Question in the given example class-var is nothing but an object of class classname
no its not create a object
In Java, all class objects need not be dynamically allocated
A) trueb) false
I think it is true. Because, we use initalize some variables which are not dynamic.
For eg: int i = 10;
False
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...