Java Questions Asked In Technical Interview In Campus Placements

Discussion in 'Programming General' started by oiperior, Nov 12, 2011.

Java Questions Asked In Technical Interview In Campus Placements
  1. Unread #1 - Nov 12, 2011 at 6:10 AM
  2. oiperior
    Joined:
    Nov 10, 2011
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0

    oiperior Newcomer

    Java Questions Asked In Technical Interview In Campus Placements

    I will be sharing different questions in this thread.
    Its open for Engineers for all Branches.
    TRY TO ANSWER THESE HERE:

    What is the difference between JDK and JVM?

    What is the difference between path and classpath?

    Should a main() method be compulsorily declared in all java classes?

    What are the limitations of static method in Java?

    It would be great if you share some questions too.
     
  3. Unread #2 - Nov 17, 2011 at 9:12 PM
  4. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    Java Questions Asked In Technical Interview In Campus Placements

    JDK is a developers kit and contains the compiler, etc. JVM is the virtual machine that runs compiled code.

    Path is so that Windows knows where the programs java, javac, etc are located. Classpath is so that Java knows where classes are.

    No.

    I don't understand the question. It depends on the situation. You could create any problem with entirely static methods, although it is not advisable. It just means you do not need an instance of the class to run the method.
     
  5. Unread #3 - Nov 17, 2011 at 9:19 PM
  6. Clashfan
    Joined:
    Sep 2, 2005
    Posts:
    3,973
    Referrals:
    1
    Sythe Gold:
    1
    Two Factor Authentication User

    Clashfan Swim To The Moon
    Highly Respected Retired Administrator

    Java Questions Asked In Technical Interview In Campus Placements

    I guess you're probably looking for can't call non-static methods?
     
  7. Unread #4 - Nov 17, 2011 at 9:21 PM
  8. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    Java Questions Asked In Technical Interview In Campus Placements

    Oh yea. I forget about that because I never do it anymore but everyone else in my Comp Sci I class does. I lol at them.
     
  9. Unread #5 - Nov 17, 2011 at 10:00 PM
  10. Nullware
    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0

    Nullware Guru

    Java Questions Asked In Technical Interview In Campus Placements

    I like the idea of this thread. Seeing questions others have had in interviews is quite useful plus a great opportunity to just pick up little pieces of information you may not have come across before.

    Here's some of what I had in a previous interview:

    What are the benefits and limitations of having a primary key in a table?

    Describe how an outer join works when using SQL (give example if possible).

    How do black box and white box testing differ?

    What is a segfault in simple terms and how might you cause one (example code or description).

    Difference between function overloading and function overriding?
     
  11. Unread #6 - Nov 17, 2011 at 11:06 PM
  12. Jimmy
    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    Java Questions Asked In Technical Interview In Campus Placements

    The JDK (Java Development Kit) is used to develop applications, whereas the JVM (Java Virtual Machine) is used to run them. The JDK is generally distributed with the JVM.

    Path is where the java executable are located; classpath is where the libraries are.

    Definitely not.

    It can't access instance members, nor can it be overwritten by subclasses.
     
< Could be wrong section, but programming on Mac? | Clicker >

Users viewing this thread
1 guest


 
 
Adblock breaks this site