You are on page 1of 5

Question

WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE


SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

Answer
Object :is a one which contains both data and member functions class: which
contains group of objects

Question
what is the difference between javap and jad utility

Answer
JAD is a programm that reads one or more java class file and convert them into
java source file which can be compiled again,so in other words we can say that
JAD is a decompiler for the java whereas javap is a command that displays
information about the methods, variables, and parameters present in a class file.

Question
can we create and enter the data & hide files using programmes ?

Answer
Yes we can

Question
I hv a same function name,arguments in both base class and dervied class, but
the return type is different. Can we call this as a function overloading? Explain?

Answer
No, if two functions with same name has either diff no of argument or same no of
arguments but different type is called function overloading not return type.

Answer
Because the function caller has the option of ignoring the function return value
(as demonstrated below), overloading based on function return value is not
considered as a valid case to be supported by the language.

class Demo
{
int function(){ return 1; };
};

int main()
{
Demo demoObject;
demoObject.function();
return 0;
}

Answer
No. for overloading two methods should be in same class and not in base &
derived class

Question
What is the main difference between C++ and Java

Answer
In C++ we can use Inheritance. there are various types of inheritance in c++
they are
* Simple / Single
* Multilevel
* Hierarchical
* Multiple
* Hybrid

Wheares in Java instead of Inheritance, we can use Interface. This is the major
and main difference between C++ and Java.

Answer
points is used in C++ whereas in java pointer is not used.

Answer
the main difference is that java provides more security than c++ and java is
useful in web based applications. In java there is no Multiple inheritance instead
of that we use Interfaces.

Answer
c++ is platform dependent and java is platform independent language. System
programming is written using c,c++ and web based applications can be
developed by java.

Answer
java is purely follow object oriented programming but c++ is not. java does not
have goto statement but c++ has.operator overloading is not possible in java but
in case of c++ is not. only constructors are there in java but there are constructor
and destructors in c++.
Question
what is difference between c++ language and java language

Answer
both are oop languages. But we can efficiently programming with java because it
is having more features like servlets, applets, event handling. And also java is
used in internet applications.

Question
why v use c++ even we have microprocessor

Answer
c++ is completely object orientedlanguage. Its major concepts like data hiding,
encapsukation and polymorphism are very effective... hence v use c++....

Question
1. Strong name
2. how to prevent a class from being inherited
3. delegates
4. default modifier for interface
5. default modifier for class
6. base class for exception
7. diff bet trigger and view in sql
8. how to exchange values from one page to another page
9. can multiple catch block ll be executed at same time
10. can u store different data types in an array & array list
11. when we ll use trigger
12. try,catch,finally usage

Answer
hope u guys know ans for des

Question
why oops need in programming

Answer
oops need in programing coz of user doesn't want to use any code to other user
like that encapsulation, inheritance, abstraction etc. so, that oop need in
programing.
Answer
OOP represents the real life concepts such as inheritence, encapsulation etc.
and in order to channelize the real time concepts in programming terms and
language, OOP is inculcated.

Question
define oops with class and object

Answer
object is the things with their own properties. A group of objects are called class
object oriented programming

Answer
oops is new approch to hantel complex program.oops mean's object oriented
programming

Answer
Object is a run time instant of a class. it is a real word
things.but class is collection of objects.

Question
What is data binding?

Answer
hiding the data

Answer
in c++, data binding refers to make the data/variables and functions which
operate on these data into a single unit. in c++ the unit is class.

Answer
data's are grouped together is called data binding which is binding the data

Answer
data are wrapped in a single unit which is calld class. The above process is calld
data binding.There are two types of bindings:1)static binding 2)dynamic binding.

Question
what is oops ?

Answer
Oops is a object oriented programming language. The whole program structure is
depended on the real world entity called object. It has many features like
inheritance, polymorphism, data binding, abstraction , encapsulation etc. It is
very convinient to write programs in oops compared to non-oops. whole program
is oriented by the object. There is nothing to do with the program without object
in object oriented programming. As the objects plays main role and controls
overall program, Hence the name oops.

You might also like