GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Concepts  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 66 of 68    Print  
how many ways to create objects in java

  
Total Answers and Comments: 2 Last Update: July 20, 2009     Asked by: galam 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: mahendravadar
 
4 ways

1. new operator
2. using Class  and loading classloader
3. Cloning
4. de-serialization


Above answer was rated as good by the following members:
mayamak
December 28, 2008 02:58:10   #1  
tariqueanwer Member Since: December 2008   Contribution: 2    

RE: how many ways to create objects in java
There are two ways:
1. new operator
2. newInstance() method. (Reflection API)

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
July 20, 2009 08:02:02   #2  
mahendravadar Member Since: July 2009   Contribution: 1    

RE: how many ways to create objects in java
4 ways

1. new operator
2. using Class and loading classloader
3. Cloning
4. de-serialization

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

From a practical programming viewpoint, polymorphism exists in three distinct forms in Java: Method overloading Method overriding through inheritance Method overriding through the Java interface  
Latest Answer : Method OverloadingMethod OverridingOperator OverloadingThese are the different forms of Polymorphism in Java. ...

While copying the objects if you say X a = b and asssume that '=' operator is overloaded then what it will call, a copy constructor or operator overloading function
Read Answers (8) | Asked by : Amit Joshi

Can we create a object of Base class?..If we can not create a object of base class then why we need Abstract class?
Read Answers (5) | Asked by : abhishek
Tags : Abstract

Latest Answer : Server container will call the callback methods like init() etc.. throught which the servlet object is constructed ...
Read Answers (1) | Asked by : prashant

Latest Answer : Object-based language" may be used to describe any programming language that is based on the idea of encapsulating state and operations inside objects. Other than VB and java script examples of object-oriented languages include Simula, Smalltalk, ...
Read Answers (1) | Asked by : abhishek

Latest Answer : other object oriented languages are c++ & simula 67 ...
Read Answers (1) | Asked by : manoj

What is the difference between Aggregation and Composition?(Asked in Polaris Interview for Java Experienced People, on April 11, in Chennai) 
Latest Answer : Aggregation:In aggregation , one object is composed of multiple objects and every object is useless without the relationship. Suppose there is a car object, so car object is useless without the tyre or steering object, and steering object is useless without ...

Latest Answer : 4 ways1. new operator2. using Class  and loading classloader3. Cloning4. de-serialization ...
Read Answers (2) | Asked by : galam

Describe why Java supports only runtime polymorphism? 
Latest Answer : The three ways of polymorphism in Java are method overloading, method overridding and method overridding by extending an class. All these results come true when we run our class which is overloading or overidding any method since we run methods at runtime. ...


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

SOA Concepts

SOA Concepts Today the concept of Service Oriented Architecture has become ubiquitous Evidence from recent years establish that SOA is not just about hype but a part of every major Business environment The truth is Service Oriented Architecture can be beneficial to Business only when it is utilized
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

C++ Objects and Classes

C Objects and Classes An Overview about Objects and Classes In object oriented programming language C the data and functions procedures to manipulate the data are bundled together as a self contained unit called an object A class is an extended concept similar to that of structure in C programming l
 

JavaScript Objects

JavaScript Objects Object oriented Programming in an important aspect of JavaScript It is possible to use built in objects available in JavaScript It is also possible for a JavaScript programmer to define his own objects and variable types In this JavaScript tutorial you will learn how to make use
 

SQL Management Objects

The object model for SQL Server 2005 is the SQL Management Objects or SMO. This model is simple in conception and usage and is based on .NET Framework managed code. It is the primary tool for developing databases management applications using the .NET framework or the SQL server management studio op
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape