• Log in or sign up for an account here: https://www.sythe.org/login

Java Questions Asked In Technical Interview In Campus Placements

oiperior

Newcomer
Joined
Nov 10, 2011
Sythe Gold
0
Messages
3
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 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
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.

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.
 
Two Factor Authentication User
What are the limitations of static method in Java?
I guess you're probably looking for can't call non-static methods?
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
I guess you're probably looking for can't call non-static methods?

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.
 
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?
 
What is the difference between JDK and JVM?

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.

What is the difference between path and classpath?

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

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

Definitely not.

What are the limitations of static method in Java?

It can't access instance members, nor can it be overwritten by subclasses.
 
Back
Top