Adblock breaks this site

Java Questions Asked In Technical Interview In Campus Placements

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

  1. oiperior

    oiperior Newcomer

    Joined:
    Nov 10, 2011
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0
    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.
     
  2. SuF

    SuF Legend
    Pirate Retired Global Moderator

    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
    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.
     
  3. Clashfan

    Clashfan Swim To The Moon
    Highly Respected Retired Administrator

    Joined:
    Sep 2, 2005
    Posts:
    3,973
    Referrals:
    1
    Sythe Gold:
    1
    Two Factor Authentication User
    Java Questions Asked In Technical Interview In Campus Placements

    I guess you're probably looking for can't call non-static methods?
     
  4. SuF

    SuF Legend
    Pirate Retired Global Moderator

    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
    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.
     
  5. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    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?
     
  6. Jimmy

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25
    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 >


 
 
Adblock breaks this site