Java interview Q

Hi,I have passed throu 1stage of interview and invited for 2nd stage of java developer post.I've few doubts in Q been asked at interview.
Could someone help me pleaseeeeeeeeeeeee.
If process A is sending messages 100 at a time to process B which can only take 10 at a time.How will you accomplish this task

Thq bye bye to these....damn forum..u njoy ur
professincy with selfishness,possessive and jealosyselfishness? let me tell you about selfishness:
imagine you're running a business, and you are answerable to shareholders who will sack you if their investments do not perform. you have a large project to complete on a tight budget, in a tight timescale - like virtually every commercial IT project in the world - and are looking to hire more programmers to get the job done. would you, given the responsibility, prefer to employ
1) somebody who can do the job, well, now
2) somebody who can answer questions in an interview, but when they have to actually solve a problem, need to trawl the internet and ask forums for help all the time?
there is room for the inexperienced in IT, most certainly. I, for one, started my career in a graduate position, with a company that had a graduate program in place. they recognized the worth in investing in fresh talent, and were happy to take on graduates - and placement students - train them, bring them up to speed, and keep them on. it worked very well for them as it was an integral part of their business model. companies like this are very common.
some companies do not work like this. they prefer to employ only people with proven experience. they are perfectly entitled to insist on experience, nobody is obliged to provide you with training. it is not your place to circumvent this decision, bluff your way into a job you cannot do, and trick this employer into funding your further learning, at the expense of their own productivity. that, my friend, is selfish
personally, I think any form of preparation for an interview - other than researching the company itself - is cheating. there should be no need, you either know what you're doing or you don't. there's no need to know the entire JDK, or any particular technology, inside out: in the workplace, you will have resources for you to research, and any interviewer worth their salt knows this. what's important is the ability to work things out
well, anyway, good luck with that chip on your shoulder, I sure hope you get the living the world owes you, soon. see you in a month when you're back here, in a panic, because you can't do the job you blagged

Similar Messages

  • Java Interview questions!!!!!!!!!!!!

    Hi folks,
    I had an interview with a small company a few days ago.
    Below is a list of the questions that they asked me.
    Some of these are not familiar to me at all.
    Does anyone have the answer for these?
    (1) Draw UML diagrams that express the following concepts:
    (a) Class C and class B are subclasses of class A.
    (b) Class P has two private fields int x and int y and one
    public method setXY(int x1, int y1)
    (c) bob is and object of class Bob.
    (d) Class A objects contain one or more objects of class B.
    (e) Interface A is implemented by class B and class C.
    (2) Define the following computer science terms:
    (a) Primitive type
    (b) type conversion
    (c) narrowing / widening a type.
    (d) reference type
    (e) type casting
    (3) (a) Give an example of variable shadowing.
    (b) (2pts) Explain the difference between method hiding and
    overriding methods.
    (c) Give an example of marker interface.
    (d) Suppose class A implements two interfaces C and D. Each of these
    has a method public void getRichQuick() but C's method
    throws CaughtBySECException and D's method throws
    AntitrustException. What will the compiler do?
    (4) (a) With respect to subclassing what does restriction mean?
    (b) How do we implement restriction in Java?
    (c) Suppose we have two interfaces in Java: I2 which extends
    I1. Is I2[] a subtype of Object[] ? Why or why
    not?
    (d) What is multiple inheritance?
    (e) Give a way to achieve the effect of multiple inheritance in Java.
    (5) (a) In a Java class definition what is an initialization. Give an
    example.
    (b) Give the order in which the following three things would be
    initialized when a subclass B of class A is created:
    (i) an explicit initializer in B, (ii) an explicit initializer
    in A, and (iii) an initalization statement in a constructor of A.
    (6) (a) On what methods and classes should one use /** ... */ comments?
    (b) For javadoc to detect these comments where relative to these
    methods/classes should the comment occur?
    (c) Explain how to use each of the following javadoc tags:
    (i) @since (ii) @see (iii) @param
    (7) Define the following terms with respect to their object-orientation
    meaning. Give an example of (b) and (c).
    (a) framework
    (b) idiom
    (c) design pattern
    (8) Give each of the things needed for the canonical form for public classes
    in Java.
    (9) Class A and Class B each contain identical blocks of code 30 lines long.
    Class A extends Class C and Class B extends Class D. Suggest a way to
    avoid the code duplication using factorization. What kind of
    factorization did you use?
    (10) Give the UML diagrams for the folowing design patterns:
    (a) Strategy
    (b) Iterator
    (c) Factory
    (d) Template
    (e) Singleton

    I think I can help you with a few points:
    2
    a. Primitive types are byte, short, char, int, long, float, double and boolean. They tell the compiler the type of the variable and thus how much memory needs to be set aside to store the variable in memory.
    b. Converting from one type to another which kinda links in with c. Widenening is the process of changing, for example and byte to an int (no explicit cast is needed) because a byte (8 bits) can fit into an int (32 bits).
    However the reverse is not true (obviously) so an explivit cast is needed to tell the compiler that you meant to do it (as information can be lost).
    e.g. int i = 3000;
    byte b = (byte)i;
    obviously a byte can only hold values up to 127 so converting this int to a byte changes the value. You have to look at the bits and understand a bit of binary code for this.
    This kinda answers part e. too.
    d. A reference type is a pointer to a cariable or object (I think thats what its getting at). eg int i = 32; i is a reference to the memory address where the computer stored the value 32.
    4d.e Multiple inheritance is when a subclass inherits from more than one base class. In java this is not possible (java only supports single inheritance with the extends keyword). However, java overcomes this with interfaces as a class, although it can only extends one base class, can implement as many interfaces as it likes in a comma seperated list.
    I hope this helps you on your way. The fact of the matter is, the majority of your questions can be found in any decent book on java (and UML). Also look at the java tutorial online.
    For example 1a is simply a box with two other boxes beneath with arrows pointing upwards to the base class (not downwards as would seem reasonable).
    The best way to learn all this stuff is to read it then try it yourself! That way you'll remember it much better.
    Good luck

  • EP,ESS/MSS  and webdynpro for java interview questions.

    I am an ep and ESS?MSS consultant and work on webdynpro for java.I have also worked on PDK like customization of masthead and logon page.I would like to know how to prepare for an interview? I mean what should I read ? and what topics should I cover?

    HI Anzar
    Instead of posting this here, you could have googled it. There are no. of sites for the same thing.
    Since you wrote, so just curious... EP & ESS/MSS Consultant... what does that mean?
    If I am not taking it wrong, by that sentence you are trying to tell that you have worked on ESS / MSS modeule. Right?
    See, if you are an EP Consultant, you must know all the below atleast -
    1. PORTAL SIDE
    a. Different types of iView configuration
    b. User Management
    c. Internal / External Portal Configuration
    d. Content development
    e. UWL
    f. Portal bottlenecks (I mean portal related issues, like slow responding etc.)
    g. Display & Desktop Configuration
    h. System Landscape Directory
    i. NWDI
    2. WEB DYNPRO SIDE
    a. Calling iviews from wd applications
    b. RFC/ BAPI calls
    c. JCO Connections
    d. SC/DC Concept
    e. Import/Export Parameters
    f. Scenario Based Answering (like... if your imported BAPI import parameters are changed by BASIS, what will you do to make it work for you.... etc)
    g. Singleton/Non-Singleton nodes
    h. Controllers
    i. Interfaces
    j. Multi-lingual Applications
    k. EJBs
    l. PDK applications
    This is the basic list, it can contain many more items... This is the list which I faced for my interview. As an EP consultant, you must be good in both Portal as well as WD end.
    1 more thing, every interview is different from other, so no point in just mugging them out. Go through with there concepts. That way, you can answer twisted & scenario based questions.
    Hope this will help.
    Best Regards
    Chander Kararia
    if question solved, close the thread after marking it answered.
    Best Regards
    Chander Kararia

  • Java interview and exam

    Hi guys,
    I have an interview and exam for Java programming job tomorrow.
    I have been told the exam is on the syntax of the core API.
    Has anybody else done similar exams for a job? Any advice?
    Anybody got any ideas what sort of thing they put on these exams.
    Any help/suggestions would be great.
    Many thanks
    alex

    I have been told the exam is on the syntax ofthe
    core API.That means he's taking one of the basic examswritten
    by a few different companies, and used by many
    different companies.I would say that most small/medium sized companies
    writes their own tests... but I might be totally
    wrong. You might be right, I'm just going off my personal experience, and granted it's most doubtly less than yours.
    >
    And he gives the impression he
    just graduated with a CS degree. This isn't for a
    Senior Developer position. I saw that, but he might be applying for a position
    as a UI programmer, server programmer, etc. There are
    just so many different positions to apply for, and
    the tests wouldn't look the same. I would never ask a
    Swing related question if I was looking for a server
    programmer. The phrase "syntax of the core API" is what I've been going by and I'm just trying to help him out, I could certaainly be wrong.
    >
    The exam will be similar to the Sun Certification
    exam (google for mock SCJP exams). Could be, but we can't be sure about that, since that
    is more a test about the syntax of the language, and
    some basic knowledge. E.g SCJP for 1.4 does not ask
    any UI related question.True, we can't be sure, I am just making an educated guess.
    >
    Don't be nervous, chances are you'll have noproblems
    with the exams and it will come down to the actual
    interview. Just be yourself, be honest and showsome
    personality. You'll be fine.I agree on this. Be honest when you are there. Tell
    them that the test was hard if you think that (since
    the will find that out anyway), and do also tell them
    what you have done, and what you are good at, but
    don't exaggerate.
    /KajHey common ground! So at least the OP can feel confident about this advice.
    OP Good Luck!!!

  • Can U be helpful to me towards my interview....

    Dear buddies...
    I have to give my java interview at this week end. can I get sample interview questions/answers, any meterial which would be helpful for interview...
    if u have any soft copies of such meterial, please forward it to me at [email protected]
    or please reply back with the relavent links.
    thanks in advance....
    fsteks

    Hi Pratik,
    to your first point I cannot say anything about it.
    to your second point I can
    Learning Hub can give you a hand by getting the certification, but it is not so, that you work through the content there and tata... got your certification. You need to work with the content which is explained there and get in touch with colleagues to get your question answered.
    In my opinion it is a great initiative to get in touch with new things and to be a platform by side to reach the goals. But again, the learning hub itself won't give you a certification at all and if you pass it you might just have a paper saying something....
    Hope I could give you a small clue and good luck with your preferred certification.
    Regards
    Florian

  • EJB Interview Que

    Any body has collection on EJB Interv Que?
    I have of java, those who wants send mail to [email protected] with the subject line Java Interview Que.

    1) You've just got yourself added to an exponentially growing spam list.
    2) Use google, you llama.
    J

  • Serious Help about JSP? please anyone

    Hello everyone,
    I am newbie on java. just learned java and java servlet. and learning jsp. i got a job interview for java development and jsp. is there anyone can help me out on which part of java and jsp i should pay attention. so i can be success in my interview. please anyone
    Sumit

    It's not that people are rude here, it's just that (in your original question) you seemed to indicate that you had no knowledge of java but were going to be interviewing for a java position and what you wanted from the user community was something you could say in the interview that would give the impression to the interviewer that you were an experienced java professional.
    If you just want pointers with a java interview... well, this is not exactly the forum for that question. I will give you one piece of advice anyway: Be honest with who your interviewer. Tell them you want a java job but have little to no experience but are willing to spend extra time to become proficient. If hired, this means you can spend time getting some OJT without worrrying about getting canned.
    If you try to BS your way into a job, they may expect you to already know alot. Your first day on the job, it will be apparent you don't know squat and it won't be too long after that before you will be back on the street looking for work.
    HTH,
    P.

  • Interview Question on Web Dynpro JAVA

    hi
    Could any body please send Interview Questons on Web Dynpro java.
    Mukesh

    Hi Mukesh
    I dont think u will get any specific material for interview questions on webdynpro ,
    but u can always follow this link which has each n every aspect of webdynpro listed here for interview u should be familure with all the titbits of webdynpro and depending on ur comfort level u can explore any specific topic which u find dificult
    and moreover none can tell which questions ur going to be asked on the day
    Important is read about those things which u implemented in ur projects coz ur interview is going to circled around what u have done and U r confidence level thats the trik
    https://www.sdn.sap.com/irj/sdn/webdynpro
    U can also read the book by Chris Whealy: "Inside Web Dynpro for Java". if u have time before ur interview
    all the best
    GOOD LUCK
    Regards
    Asif

  • "Can you list me some features of the java language"(Interview question )

    Hi,
    This was a question I got yesterday in an interview, exactly as the interviewer said it.
    I listed off it's cross platform feature... what else would you have added?
    Question 2. He also looked for #2the differences between java and C++"

    It does if you put <sarcasm> tags in/Too easy, and that wasn't the point back then anyway. :)
    Look at this forum sometime and see how many people
    cram procedural code into a main and still call
    themselves "Java programmers". Yepp. I dare to say that I do much better design, yet I don't call myself a programmer, even though I get paid for coding.
    Java doesn't enforce
    it, either. There's no way to mandate O-O thought.Yes and no. IIRC (it's been a very long time, and I mostly did C, anyway), you can write C++ code without ever creating one class. You can't do that in Java. So It's be a bad OOD, but never a good structural design, as structural design doesn't know classes.

  • Website for examples of tricky java programs asked in interviews

    Any one knowing the Website for tricky java programs asked in interviews?
    Regards,
    akshay

    Developers wrote:
    I use google,but even then I am not able get site for the tricky programs asked in interview...Damn Google holding out on you!
    Here -> http://geekinterview.com

  • Oracle's Java tools strategy - interview

    I've posted my interview with Ted Farrell, I've posted an interview with Ted Farrell, who is Architect and
    Director, Application Development Tools Division at Oracle Corporation. He talks about JDeveloper, both the current 10g and future versions. Topics include JDeveloper vs Eclipse, ADF, MDA, and model-driven
    development.
    http://www.itwriting.com/jdev1.php
    Tim

    Sure. I'm glad you're asking :o)
    "...our goal is to be the number one IDE in the market..."
    (I really would like to work with the number one IDE. 9.0.5.2 is a huge improvement over the 9.x versions and a great IDE but some things are still missing.)
    "In the next version of JDeveloper we have pretty much all those features that you find in Eclipse or IntelliJ."
    (I like IntelliJ a lot.)
    "In the next version which you should see sometime this year, the JDeveloper IDE has full-blown refactoring."
    (Something we all here are waiting for.)

  • Java UI Developer Interview

    Hi All,
    I recently applied to a company that produces some kind of educational software. They had two open positions, one for a UI (Swing?) developer and the other for a J2EE and Servlet infrastructure developer. I applied for both however I really wanted the infrastructure position.
    They recently called me for a phone interview but they want to interview me for the UI position.
    I like Swing okay... I am qualified and proficient in it however I think I would need to blow my brains out if I was working on it 40+ hours a day. I like the opportunity to work on different technologies and on different areas of software.
    I like to be the Jack of All Trades, rather than an Ace in his Place. I also don't like to commit to a designated area, I like to be passed around like a Vietnamese prostitute.
    What are your opinions on working as a UI developer? Anybody like it? Anybody hate it? Does it usually pay well?

    TuringPest wrote:
    He thinks I would be doing better for myself to get a job as a J2EE developer at a bank i would gouge out my eyes before i worked for a bank OR had to write J2EE code.
    both at the same time? ...
    working for a huge multinational, ive idealized working for a small company (which ive never done).
    in fact a good friend of mine just left to work an engineering job for a company with only 20
    or so people! from 100s of thousands thats a huge change.
    I am getting tired of working for small companies though. I keep getting shafted dont you feel more invested? or more capable of making a name for yourself?
    is that the reality at these places? or is it just cr@ppy?
    a career site makes money finding people new jobs. id be wary if theyre telling you things
    that make you want a new job. ; )I can understand the romance behind working at a small company or startup however I can say at least from my experience is that you will run into either two types of problems.
    One... small companies tend to not have the capital or funds to pay well. Because of this you are watched like a hawk and there is REAL stress to pick up real quick or face termination. I never had this problem as I had always done a good job and I am involved in all these different areas and I LOVE that aspect. I am just TRULY not being paid well for all the blood sweat and tears I put into these small companies. I realize that I am making more of an impact and that gives me a warm fuzzy but I have a family to take care of and I am in DEBT up to my friggin eyeballs! I am in trouble guys, and I NEED to put number one first if you catch my drift...
    Two... Politics, politics, politics.
    Small companies usually have very tight relationships between key people and you REALLY gotta watch whose toes you step on.
    Do you have any idea how frustrating it is to pour your heart and soul into a project that will benefit the company greatly. This project is your baby, but it threatens the duties or workload of a politically powerful person at this company, either that or changes the status quo, so this political VIP is scared of the change.
    I stood by what I knew was right and I was nearly fired. Politics worked against me as I was pressured to leave.
    Many small companies are their own worst enemy, where the people in charge value the relationships of their friends at the company more than the bottom line.
    Working for a small company is NOT all its cracked up to be.

  • Compare two Java Objects without Comparable / Comparator

    Hi Friends,
    I would like to compare two java objects (lots o attributes) without using Comparable / Comparator.
    Any suggestion/sample code would be helpful.
    Thanks,
    Sachin

    I suppose you could design another feature to compare Objects... but that would involve a design process, so asking for sample code is definitely premature. And as EJP says, what would be the point?
    At least that's what I would answer if this was one of those stupid interview questions.

  • Can anybody send me the interview point of Questions on OO ABAP?.

    Can anybody send me the interview point of Questions on OO ABAP?.

    Hello Satish
    ABAP-OO is by no means different from other object-oriented languages. Thus, you can take a book like the one for the <b>Java certification exam</b>. Having read and understood this book you are well prepared for any interview question.
    Regards
      Uwe

  • Not able to get MetaData of BlobItems using java or by using the URI

    line1
    String metadta = blob.getMetadata().toString();
    line2 System.out.println(metadta);
    line3 blob.download(fileOutputStream);
    line4 metadta = blob.getMetadata().toString();
    line5 metadta.toString();
    line6 System.out.println(metadta);
    I will get NullPointerException on Line1
    And will be Able to get MetaData of the blob item after i initiate download .

    Hi,
    You have got NullPointerException on Line1, what was this blob on line 1, I didn't very familar with java, but from my experience, we need to know the details of getMetadata(), about download blob file, I suggest you read this article:
    http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Open an old mail account from a new mac

    My late lamented MacBook Pro suffered Death By Coffee. Fortunately the primary HD was undamaged, so I had a tech put it in a USB enclosure and now I can boot up "my computer" from any mac later than something like 2009. This has however become tediou

  • Printing a document

    Hi everyone, I made a document containing a teble with Pages '09 (I have a MacBook with Mac OsX 10.6.7) and when I tried to print it (I have a Canon i-sensys LPB3010 connected via USB. Driver version 3.31) the result was not the same as I see it on t

  • I have an old version of itunes on my computer.  My current iPhone will only support OS 10.6.8, how can I upgrade to that system instead of the latest version?

    I have an old version of itunes on my computer.  My current iPhone will only support OS 10.6.8, how can I upgrade to that system instead of the latest version?

  • Enabling Subprogram Inlining

    Hi, In an attempt to test Subprogram Inlining in Oracle 11g (11.2.0.1.0 64-bit on Linux), I executed the code below: SQL> show parameter PLSQL_OPTIMIZE_LEVEL NAME                                 TYPE        VALUE plsql_optimize_level                

  • EDI: Partner profile inbound not available

    Hi All, I am doing File to IDOC Scenario. File got picked up and every where message is successfull, but when i am checking into WE05 of R3 i am getting an error EDI : Partner Profile not available. I have already created partner profile in R3 side a