Search

Showing posts with label Wipro. Show all posts
Showing posts with label Wipro. Show all posts

Wipro Interview Questions

  1. Wipro Technologies
overloading and overriding example?
Diff. b/w Hashtable and Hashmap?
Diff. b/w Vector and ArrayList?
Why we will give preference to ArrayList?
where we used in vector?
What is Thin? Diff. b/w Thin and Thick?
How the JspSession Management will done program?
How the JDBCConnection will be Produced Program?
If it possibe multiple constructors in the same class
means different parameters.
How can we call with in the same class? Ans: this
How the Jsp Form Fields will be submitted.
if any error will occur the data fields will be lost
or any where stored? Ans: Bean Or Session
Where the field validation will be done?
Ans: Form Bean
what is DesignPattern? what are the types of design
patterns?
what is the SingleTon DesignPattern?
2. IBM Technologies
what is the Diff. b/w Servlets and Jsp?
what are the implicit objects in jsp?
what is the diff. b/w Forward and Include?
what is the diff.b/w JspDirective[<%@JspInclude%>] tag and Jsp:include[<jsp:include>] tag?
Diff. b/w Hashtable and Hashmap?
How many types of Ejb?
Which is the best performance of interface and abstract?
what is the JspLifecycle?
3. Capgemini
Diff. b/w Abstract and Interface?
what is the diff. b/w Jsp:forward tag and rd.forward(".jsp")?
what is the diff. b/w <jsp:include> and <%@JspInclude%> ?
how can we handle the Exceptions in Jsp?
what are the weblogic[7001], tomcat[8080]
websphere[9080]  port no?
what is the Latest version of java?
what is Wrapper classes?
final,finally and finalized?
about on ArrayList?
Diff. b/w Hashtable and Hashmap?
Servlet Lifecycle?
tell me about on Custom tag files?
what are the Struts Action classes?
how to use the Cuistom tags in the Struts?
we don't know the which type of collection object will come at Runtime. then it will be take a method to one element and compare and sort that element how can we proceed?
Ans: ArrayList,Vectors,LinkedList,Set?
weblogic:
how the cluster will be done?
how the session Pool settings are done in weblogic?
how Replication done in  weblogic server?
how will you write replication code for weblogic in j2ee?
how it user enter 3 fields. if server goes down then what happend?
if 1000 users access the same page at a time in that case what will happend?
write struts validation through programmatic and xml validation?
CVS:
if one user modified content and another user also modified. first user modified if the second user save it what happend?
First change and submit and second user change what happend? First change and submit and second user not chagged then what happend. what file he get?
First will save, Second not saved and not chan ged. if the third user will access what happend?
one to many mapping hbm files? Eg: Employee  ------> projects
100
Jbuilder version?
In Eclipse how to PlugIn CVS or SVN?
Name:------ Attachments     submit
here Btmp files are not allowed and Zip files are allowed? then how to get it errors will be raised?  
4. MindTree:
write a program for CRUD Operations  using Struts Action calass,design patterns
and handle the exceptions? and use all the layers in struts?
what is the servlet?
how to handle exception?
diff. b/w Abstract class and interface?
diff. b/w vector and Arrayist?
what are the abstract class and interfaces?
what is servlet lifecycle?
what is diff. b/w voltaile and Transient?
what is Ejb?
what is the role of Action class in struts?
what is Home interface and Remote interface?
how to validate a FormBean?
what is the method present in Home interface?
5. BOB Technologies:
what is the diff. b/w JRE, JVM,JDK?
SingleTon designPattern Example?
Factory design Pattern?
what is the use of Spring?
how can you write the Userdefined Exceptions?
what are the diff. b/w iterator and Enumerator?
what are the diff. b/w HashMap and HashTable?
HashMap is taken key value as null?
it is possible to take two times key value as null. what will happend?
what is the JspLifeCycle?
how can we careat Session object?
beroree class we can daclare specifiers as sataic? how and what?
what is overriding and oiverloading?
In super class protected is there is iyt possible to  override with the public specifier?
how can u write with out using catch block?
how can u write using try and finally ?
what is the diff. b/w throws and throw keywords?
what is the purpose of finally block?
what is abstraction?
what is the diff b/w string,StringBuffer & Stringbulider?
What is the connection pool purpose?
User Request -----> SERVLET   Howmany objects are created? Is it possible multithreading?

    100
6. MarLabs Software Pvt.Ltd:
where the static variables will be stored?
where the instyle variables will be stored?
what are the class loaders in java?
Diff. b/w instance variable and static variable?
what is synchronization? give the example?
How to prevent multithreading in jsp?
what are the JspLifeCycle?
Diff. b/w ArrayList and Vector?
How to convert ArrayList as Synchronized?
Diff. b/w Hashtable and Hashmap?
what are the diff. b/w iterator and Enumerator?
what is the diff b/w StringBuffer & Stringbulider?
what is log4j?
what are the levels of log4j?
what are the types of Appenders in log4j?
How to Build the Ant tool?
Explain the struts flow?
Explain the validate() in struts?
what is the Reflection in java?
Method Overriding in Exception case?
What is the diff. b/w interface and abstract class?
what is the NumberFormatException?
How to show the Exceptions in Jsp?
What is the Singleton Design Pattern?
How to manage the Session object?
Diff. b/w Servlet Outext and Servlet Outing?
Haow to create the Session object in Hibernate?
Diff. b/w Webserver and Application server?
To create the SessionFactory object what will happend?
How to get the particular key value in HashMap?
What is Serialization?
Give the example of Serialization? Which are not serializable and  Which are not serializable?

What is JVM (Java Virtual Machine)?
What is JIT (Just-in-Time) Compilation?
What is Object Oriented Programming?
What's a Class?
What's an Object?
What's the relation between Classes and Objects?
What are different properties provided by Object-oriented systems?
How do you implement inheritance in Java?
How can we implement polymorphism in Java?
What's an interface and how will you go about implementing an
interface?
What is an Abstract class?
What are Abstract methods?
What's the difference between "Abstract" classes and "Interfaces"?
What's difference between Static and Non-Static fields of a class?
What are inner classes and what's the practical implementation of
inner classes?
What are packages?
What is a constructor in class?
Can constructors be parameterized?
Can you explain transient and volatile modifiers?
What is the use if "instanceof " keyword?
What are Native methods in Java?
Explain in depth Garbage collector?
How does the garbage collector determine that the object has to be
marked for deletion?
Can you explain "finalize()" method?
How can we force the garbage collector to run?
What's the main difference between "Switch" and "If " comparison?
What's the use of JAVAP tool?
What are applets?
In which package is the applet class located?
What are native interfaces in Java?
what are Class loader's?
what is Bootstrap, Extension and System Class loader?
Can you explain the flow between bootstrap, extension and system class
loader?
Can you explain how can you practically do dynamic loading?
How can you copy one array in to a different array?
Can you explain the core collection interfaces?
Can you explain in brief the collection classes which implement the
collection interfaces?
What's the difference between standard JAVA array and ArrayList class?
What's the use of "ensureCapacity" in ArrayList class?
How can we obtain an array from an ArrayList class?
What is "LinkedList" class for?
Can you explain HashSet class in collections?
what is LinkedHashSet class?
what is a TreeSet class?
what's the use of Comparator Interface?
How can we access elements of a collection?
What is Map and SortedMap Interface?
Have you used any collection algorithm?
Why do we use collections when we had traditional ways for collection?
Can you name the legacy classes and interface for collections?
What is Enumeration Interface?
what's the main difference between ArrayList / HashMap and Vector /
Hashtable?
Are String object Immutable, Can you explain the concept?
what is a StringBuffer class and how does it differs from String
class?
what is the difference between StringBuilder and StringBuffer class?
What is Pass by Value and Pass by reference? How does JAVA handle the
same?
What are access modifiers?
what is Assertion?
Can you explain the fundamentals of deep and shallow Cloning?
How do we implement Shallow cloning?
How do we implement deep cloning?
What's the impact of private constructor?
What are the situations you will need a constructor to be private?
Can you explain final modifier?
What are static Initializers?
If we have multiple static initializer blocks how is the sequence
handled?
Define casting? What are the different types of Casting?
Can you explain Widening conversion and Narrowing conversion?
Can we assign parent object to child objects?
Define exceptions?
Can you explain in short how JAVA exception handling works?
Can you explain different exception types?
Can you explain checked and unchecked exceptions?
Can we create our own exception class?
What are chained exceptions?
What is serialization?
How do we implement serialization actually?
What's the use of Externalizable Interface?

Threading

What's difference between thread and process?
What is thread safety and synchronization?
What is semaphore?
What are monitors?
What's the importance of synchronized blocks?
How do we create threads?
what's the difference in using runnable and extends in threads?
Can you explain Thread.sleep?
How to stop a thread?
What is wait() and notify() ?
Can you explain how Scheduling and Priority works in threads?
Can you explain Yielding in threading?
what are daemon threads?

JDBC

How does JAVA interact with databases?
Can we interact with non-relational sources using JDBC?
Can you explain in depth the different sections in JDBC?
Can you explain in short how you go about using JDBC API in code?
How do you handle SQL exceptions?
If there is more than one exception in SQLException" class how to go
about displaying it?
Explain Type1, Type2, Type3 and Type4 drivers in JDBC?
What are the advantages and disadvantages of using JDBC-ODBC bridge
driver?
What are the advantages and disadvantages of using Native-API/
Partially Java Driver?
What are the advantages and disadvantages of using Net-Protocol/ All-
Java driver?
What are the advantages and disadvantages of using Native-protocol/
All-Java driver?
Define meta-data?
What is DatabaseMetaData?
Can you explain "ConnectionFactory" class?
I want to display tables of a database how do I do it?
Define "ResultSetMetaData"?
What is the difference between "ResultSet" and "RowSet"?
Can "ResultSet" objects be serialized?
Can you explain "ResultSet", "RowSet", "CachedRowset", "JdbcRowset"
and "WebRowSet" relation ship?
what are the different types of resultset?
Explain the concept of "PreparedStatement "statement interface?
What's the difference between "Statement" and "PreparedStatement"?
How can we call stored procedure using JDBC?
Can you explain "CallableStatement" interface in detail?
How do you get a resultset object from stored procedure?
How can we do batch updates using "CallableStatement" Interface?
Define transactions?
what is ACID in transaction?
what are the four essential properties of a transaction?
Explain concurrency and locking?
What are different types of locks?
What are the different types of levels of resource on which locks can
be placed?
Define lock escalation?
What is Table level and Row level locking?
What are the problems that can occur if you do not implement locking
properly?
What are different transaction levels?
Twist: - what are different types of locks?
What is difference between optimistic and pessimistic locking?
What are deadlocks?
How can we set transaction level through JDBC API?
Can you explain transaction control in JDBC?
What are Savepoints in a transaction?
Servlets and JSP
What are Servlets?
What are advantages of servlets over CGI?
Can you explain Servlet life cycle?
What are the two important API's in for Servlets?
Can you explain in detail "javax.servlet" package?
What's the use of ServletContext?
How do we define an application level scope for servlet?
What's the difference between GenericServlet and HttpServlet?
Can you explain in detail javax.servlet.http package?
What's the architecture of a Servlet package?
Why is HTTP protocol called as a stateless protocol?
What are the different ways we can maintain state between requests?
What is URL rewriting?
What are cookies?
What are sessions in Servlets?
What's the difference between getSession(true) and getSession(false) ?
What's the difference between "doPost" and "doGet" methods?
Which are the different ways you can communicate between servlets?
What is functionality of "RequestDispatcher" object?
How do we share data using "getServletContext ()"?
Explain the concept of SSI?
What are filters in JAVA?
Can you explain in short how do you go about implementing filters
using Apache Tomcat?
Twist: - Explain step by step of how to implement filters?
what's the difference between Authentication and authorization?
Explain in brief the directory structure of a web application?
Can you explain JSP page life cycle?
What is EL?
how does EL search for an attribute?
What are the implicit EL objects in JSP?
How can we disable EL?
what is JSTL?
Can you explain in short what the different types of JSTL tags are?
How can we use beans in JSP?
What is <jsp:forward> tag for ?
What are JSP directives?
what are Page directives?
what are include directives?
Can you explain taglib directives?
How does JSP engines instantiate tag handler classes instances?
what's the difference between JavaBeans and taglib directives?
what are the different scopes an object can have in a JSP page?
what are different implicit objects of JSP?
what are different Authentication Options available in servlets?
Can you explain how do we practically implement security on a
resource?
How do we practically implement form based authentication?
How do we authenticate using JDBC?
Can you explain JDBCRealm?
Can you explain how do you configure JNDIRealm?
How did you implement caching in JSP?

EJB

What is EJB?
what are the different kind of EJB's?
you are designing architecture for a project how do you decide whether
you should use session, entity or message driven bean?
Can you explain "EJBHome" and "EJBObject" in EJB?
Can client directly create object of session or entity beans?
Can you explain the concept of local interfaces?
What are the limitations of using Local object?
Which application server have you used for EJB ?
Can you explain step by step practically developing and deploying EJB
component?
what is Passivation and Activation in EJB?
Can beans who are involved in transaction have "Passivation" process?
How does the server decide which beans to passivate and activate?
In what format is the conversational data written to the disk?
Can you explain in brief Life cycle for Stateless and Stateful beans?

Struts

What's MVC pattern?
Define struts?
Can you explain the directory structure for a struts folder in brief ?
Can you give an overview of how a struts application flows?
Twist: - What are action and action form classes in Struts?

XML and WebServices

What is XML?
What is the version information in XML?
What is ROOT element in XML?
If XML does not have closing tag will it work?
Is XML case sensitive?
What is the difference between XML and HTML?
Is XML meant to replace HTML?
Can you explain why your project needed XML?
What is DTD (Document Type definition)?
What is well formed XML?
What is a valid XML?
What is CDATA section in XML?
What is CSS?
What is XSL?
What is element and attributes in XML?
What are the standard ways of parsing XML document?
In What scenarios will you use a DOM parser and SAX parser?
What is XSLT?
Define XPATH?
What is the concept of XPOINTER?
What is a Web Service ?
What is DISCO ?
What is SOAP ?
What is WSDL ?
Can you explain UDDI ?
Can you explain JAXP ?
What is a XML registry?
What is JAXR?
What is JAXM?
Can you explain how JAXM messaging model works?
Can you explain JAX-RPC?
Internationalization
Can you explain i18n and l10n?
Can you explain internationalization and localization?
What is Locale?
How do we display numbers, currency and Dates according to proper
Locale format?
what are resource bundles?
How do we load a resource bundle file?
How can we do inheritance in resource bundles?

JNI

What is Native Interface in JAVA?
Can you say in brief steps required to implement Native interfaces in
Java?
Can JNI be used for VB6, C# or VB.NET directly?
What are JNI functions and pointers?
How does the garbage collector know JNI objects are no more used?
Twist: - What are the different types of references JNI supports?
Twist: - How to do you delete global objects?
how does the native language C or C++ understand data types in JAVA?
Can you explain exception handling in JNI?
What are limitations for "JNIEnv" pointer in multi-threading
scenarios?
What are the advantages and disadvantages of using "JNI"?

Architecture

What are design patterns ?
What is the difference between Factory and Abstract Factory Patterns?
What is MVC pattern?
Twist: - How can you implement MVC pattern in Servlets and JSP?
How can we implement singleton pattern in JAVA?
How do you implement prototype pattern in JAVA?
Twist: - How to implement cloning in JAVA? What is shallow copy and
deep copy ?
Can you give a practical implementation of FAƇADE patterns?
How can we implement observer pattern in JAVA?
What is three tier architecture?
What is Service Oriented architecture?
What is aspect oriented programming?

Project Management

What is project management?
Is spending in IT projects constant through out the project?
Who is a stakeholder ?
Can you explain project life cycle ?
Twist :- How many phases are there in software project ?
Are risk constant through out the project ?
Can you explain different software development life cycles ?
What is triple constraint triangle in project management ?
What is a project baselines ?
What is effort variance?
How is normally a project management plan document organized ?
How do you estimate a project?
What is CAR (Causal Analysis and Resolution)?
What is DAR (Decision Analysis and Resolution) ?
What is a fish bone diagram ?
Twist:- What is Ishikawa diagram ?
What is pareto principle ?
Twist :- What is 80/20 principle ?
How do you handle change request?
What is internal change request?
What is difference between SITP and UTP in testing ?
What is the software you have used for project management?
What are the metrics followed in project management?
Twist: - What metrics will you look at in order to see the project is
moving successfully?
You have people in your team who do not meet there deadlines or do not
perform what are the actions you will take ?
Twist :- Two of your resources have conflicts between them how would
you sort it out ?
What is black box testing and White box testing?
What's the difference between Unit testing, Assembly testing and
Regression testing?
What is V model in testing?
How do you start a project?
How did you do resource allocations?
How will you do code reviews ?
What is CMMI?
What are the five levels in CMMI?
What is continuous and staged representation?
Can you explain the process areas?
What is SIX sigma?
What is DMAIC and DMADV ?
What are the various roles in Six Sigma implementation?
What are function points?
Twist: - Define Elementary process in FPA?
What are the different types of elementary process in FPA?
What are the different elements in Functions points?
Can you explain in GSC and VAF in function points?
What are unadjusted function points and how is it calculated?
Can you explain steps in function points?
What is the FP per day in your current company?
Twist :- What is your company's productivity factor ?
Do you know Use Case points?
What is COCOMO I, COCOMOII and COCOMOIII?
What is SMC approach of estimation?
How do you estimate maintenance project and change requests?

UML

What is UML?
How many types of diagrams are there in UML ?
Twist :- Explain in short all types of diagrams in UML ?
What are advantages of using UML?
Twist: - What is Modeling and why UML ?
What is the sequence of UML diagrams in project?
Twist: - How did you implement UML in your project?
Just a small Twist: - Do I need all UML diagrams in a project?
Give a small brief explanation of all Elements in activity diagrams?
Explain Different elements of a collaboration diagram ?
Explain Component diagrams ?
Explain all parts of a deployment diagram?
Describe the various components in sequence diagrams?
What are the element in State Chart diagrams ?
Describe different elements in Static Chart diagrams ?
Explain the different elements of a Use Case ?
Twist: - What is the difference between Activity and sequence diagrams?
(I leave this to the readers)



Reply With Quote



Cognizant Hiring Nov 2012 
562+ Openings. Exp: 0 to 8 Yrs. Apply Now & get Multiple Interviews
TimesJobs.com/Cognizant-Jobs-2012



Andrew Thompson
Guest
Posts: n/a

      11-15-2007
On Nov 16, 3:01 am, Jobs <jobatyourdoors...@yahoo.co.in> wrote:
> Looking for answers visit..


...*anywhere* but..

>..
www.questpond.SPAm
>
> JAVA Interview questions
>
> OOPS and CORE JAVA ...


"Oops, he's miss spelt it *again*.."

--
Andrew T.

Reply With Quote


Bridge Java and .NET 
Extreme performance, trivial deployment, drop-dead easy
www.CodeMesh.com



Roedy Green
Guest
Posts: n/a

      11-15-2007
On Thu, 15 Nov 2007 08:01:44 -0800 (PST), Jobs
<> wrote, quoted or indirectly quoted
someone who said :

>JAVA Interview questions


Where may a see a large sample of your code?

Where can a view an example of your applications running on the web?

May I see a sample of your program documentation?

Here is a small problem to solve. Please come back tomorrow with as
much as you can complete. Don't forget the overall programmer
documentation, the Javadoc and the user documentation.

What are the names of some members of programmer teams you have worked
on?
--
 
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com 

Reply With Quote


Roedy Green
Guest
Posts: n/a

      11-15-2007
On Thu, 15 Nov 2007 08:01:44 -0800 (PST), Jobs
<> wrote, quoted or indirectly quoted
someone who said :

>What's a Class?
>What's an Object?


Don't be silly. Good programmers could use these without being able
to articulate the formal definition, and any twit can memorise the
text book definition and still not be able to code the Goldilocks
problem.
--
 
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com 

Reply With Quote

Patricia Shanahan
Guest
Posts: n/a

      11-15-2007
Roedy Green wrote:
> On Thu, 15 Nov 2007 08:01:44 -0800 (PST), Jobs
> <> wrote, quoted or indirectly quoted
> someone who said :
>
 
>> JAVA Interview questions

>
 
> Where may a see a large sample of your code?
>
 
> Where can a view an example of your applications running on the web?
>
 
> May I see a sample of your program documentation?


Now that I'm a student the last three questions are not so tough. For
many years, all my Java programs were either trivial exercises or
confidential. I could not have shown a prospective employer anything
worthwhile.

How do people who use those questions handle that situation?

Patricia

Reply With Quote


Esmond Pitt
Guest
Posts: n/a

      11-15-2007
Jobs wrote:

> What is JIT (Just-in-Time) Compilation?


A JVM technology that was obsoleted in May 2000.

> How do you implement inheritance in Java?


You don't. Java does.

> How can we implement polymorphism in Java?


Ditto.

> What are Native methods in Java?


Methods that are not in Java.

> How can we force the garbage collector to run?


You can't.

> What's the main difference between "Switch" and "If " comparison?


One is an apple, the other is an orange.

> What's the use of JAVAP tool?


Very little. I use it about four times a year. Used it this morning
 
oddly enough.

> In which package is the applet class located?


There is no such class.

> What are native interfaces in Java?


There is no such thing.

> How can you copy one array in to a different array?


I don't ever do that.

> What's the use of "ensureCapacity" in ArrayList class?


None that the programmer needs to be aware of.

> Have you used any collection algorithm?


I put the bins out every Wednesday night.

> What is Pass by Value and Pass by reference? How does JAVA handle the
> same?


It doesn't. It only handles PBV. It also handles pass by remote
 
reference but you didn't ask about that.

> Can we assign parent object to child objects?


First please define these terms, and fix your grammar while you're about it.

> What are monitors?


A language structure invented by Per Brinch Hansen that sadly doesn't
 
exist in Java.

> Can you explain how Scheduling and Priority works in threads?


No. How scheduling works in Java is undefined.

> If there is more than one exception in SQLException" class how to go
> about displaying it?


Your question is meaningless.

> Explain Type1, Type2, Type3 and Type4 drivers in JDBC?


Your question is barely relevant to anybody.

> what is ACID in transaction?


An acronym for the four essential properties of a transaction.

> what are the four essential properties of a transaction?


The things that ACID stands for.

> What are the two important API's in for Servlets?


The TWO important APIs?

> Why is HTTP protocol called as a stateless protocol?


Because it is.

> Who is a stakeholder ?


A misapplication of a term from gambling where a stakeholder is an
 
independent party who holds the bets.

> Twist :- How many phases are there in software project ?


Which specific software project are you talking about?

Reply With Quote

Travis James
Guest
Posts: n/a

      11-16-2007
Patricia Shanahan wrote:
> Roedy Green wrote:

>> On Thu, 15 Nov 2007 08:01:44 -0800 (PST), Jobs
>> <> wrote, quoted or indirectly quoted
>> someone who said :
>>

>>> JAVA Interview questions

>>
>> Where may a see a large sample of your code?
>>
>> Where can a view an example of your applications running on the web?
>>
>> May I see a sample of your program documentation?

>
 
> Now that I'm a student the last three questions are not so tough. For
> many years, all my Java programs were either trivial exercises or
> confidential. I could not have shown a prospective employer anything
> worthwhile.
>
 
> How do people who use those questions handle that situation?
>
 
> Patricia


Personally, I cannot say that I've ever done an interview with the
 
aforementioned questions. I would have to know them ahead of time and
 
even then might not be able to answer due to all work being internal
 
company property.

In a recent phone interview with Google, I was asked to fire up Google
 
Docs and walk through a problem real-time with the interviewer.

While the post was blatant spam, I at least found the list to be a
 
useful set of ponderables.

Reply With Quote


Sabine Dinis Blochberger
Guest
Posts: n/a

      11-16-2007
Travis James wrote:

> Patricia Shanahan wrote:

> > Roedy Green wrote:

> >> On Thu, 15 Nov 2007 08:01:44 -0800 (PST), Jobs
> >> <> wrote, quoted or indirectly quoted
> >> someone who said :
> >>
> >>> JAVA Interview questions
> >>
> >> Where may a see a large sample of your code?
> >>
> >> Where can a view an example of your applications running on the web?
> >>
> >> May I see a sample of your program documentation?

> >
 
> > Now that I'm a student the last three questions are not so tough. For
> > many years, all my Java programs were either trivial exercises or
> > confidential. I could not have shown a prospective employer anything
> > worthwhile.
> >
 
> > How do people who use those questions handle that situation?
> >
 
> > Patricia

>
 
> Personally, I cannot say that I've ever done an interview with the
 
> aforementioned questions. I would have to know them ahead of time and
 
> even then might not be able to answer due to all work being internal
 
> company property.


Agreed. I was asked to show some source code in an interview and I was a
little taken aback - it's either my intellektual property (which I don't
want to give away like that) or a former employers.

>
 
> In a recent phone interview with Google, I was asked to fire up Google
 
> Docs and walk through a problem real-time with the interviewer.
>
 
> While the post was blatant spam, I at least found the list to be a
 
> useful set of ponderables.


Ok, but does it really help an empoyer asking these things? Someone
fresh out of a course can answer these textbook like question easy, or
do like Roedy and be a smart alec
 http://www.velocityreviews.com/forums/images/smilies/icon_wink.gif

It seems companies ask all these high-standard questions and the reality
is that their development department is a mess as anyone elses
 http://www.velocityreviews.com/forums/images/smilies/icon_razz.gif
--
 
Sabine Dinis Blochberger

Op3racional
www.op3racional.eu 

Reply With Quote

Bent C Dalager
Guest
Posts: n/a

      11-16-2007
In article <mE4%i.13359$>,
Esmond Pitt <> wrote:

>Jobs wrote:
>

>> How can we force the garbage collector to run?

>
>You can't.


while (true)
{
new Object();
}

Cheers,
Bent D
--
 
Bent Dalager -
 - http://www.pvv.org/~bcd
powered by emacs

Reply With Quote


Chris Dollin
Guest
Posts: n/a

      11-16-2007
Bent C Dalager wrote:

> In article <mE4%i.13359$>,
> Esmond Pitt <> wrote:

>>Jobs wrote:
>>

>>> How can we force the garbage collector to run?

>>
>>You can't.

>
 
> while (true)
> {
> new Object();
> }


A smartarse compiler [or JIT] might eliminate the `new`, since the
 
object isn't used and its constructor doesn't do anything significant;
 
so this doesn't /force/ the GC to run. Yes?