Thursday, August 7, 2008

Java/J2EE Interview Questions


Welcome to the exciting world of New Interview Questions. Here, you can read the existing answers, provide your own answers, ask new questions, save your favorite questions and do much more!
How do I instantiate a bean whose constructor accepts parameters using the useBean tag?
http://www.newinterviewquestions.com/interview/340

Replacing Characters in a String?
http://www.newinterviewquestions.com/interview/341

Searching a String?
http://www.newinterviewquestions.com/interview/342

Connecting to a Database and Strings Handling?
http://www.newinterviewquestions.com/interview/343

What is a transient variable?
http://www.newinterviewquestions.com/interview/344

What is the difference between Serializalble and Externalizable interface?
http://www.newinterviewquestions.com/interview/345

How many methods in the Externalizable interface?
http://www.newinterviewquestions.com/interview/346

How many methods in the Serializable interface?
http://www.newinterviewquestions.com/interview/347

How to make a class or a bean serializable?
http://www.newinterviewquestions.com/interview/348

What is the serialization?
http://www.newinterviewquestions.com/interview/349

What are synchronized methods and synchronized statements?
http://www.newinterviewquestions.com/interview/350

What is synchronization and why is it important?
http://www.newinterviewquestions.com/interview/351

What is the purpose of finalization?
http://www.newinterviewquestions.com/interview/352

What classes of exceptions may be caught by a catch clause?
http://www.newinterviewquestions.com/interview/353

What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
http://www.newinterviewquestions.com/interview/354

What happens when a thread cannot acquire a lock on an object?
http://www.newinterviewquestions.com/interview/355

What restrictions are placed on method overriding?
http://www.newinterviewquestions.com/interview/356

What restrictions are placed on method overloading?
http://www.newinterviewquestions.com/interview/357

How does multithreading take place on a computer with a single CPU?
http://www.newinterviewquestions.com/interview/358

How is it possible for two String objects with identical values not to be equal under the == operator?
http://www.newinterviewquestions.com/interview/359

How are this() and super() used with constructors?
http://www.newinterviewquestions.com/interview/360

What class allows you to read objects directly from a stream?
http://www.newinterviewquestions.com/interview/361

What is the ResourceBundle class?
http://www.newinterviewquestions.com/interview/362

What interface must an object implement before it can be written to a stream as an object?
http://www.newinterviewquestions.com/interview/363

What is Serialization and deserialization?
http://www.newinterviewquestions.com/interview/364

What are the Object and Class classes used for?
http://www.newinterviewquestions.com/interview/365

Can you write Java code for declaration of multiple inheritance in Java ?
http://www.newinterviewquestions.com/interview/366

What do you mean by multiple inheritance in C++ ?
http://www.newinterviewquestions.com/interview/367

Write the Java code to declare any constant (say gravitational constant) and to get its value.
http://www.newinterviewquestions.com/interview/368

What are the disadvantages of using threads?
http://www.newinterviewquestions.com/interview/369

Given two tables Student(SID, Name, Course) and Level(SID, level) write the SQL statement to get the name and SID of the student who are taking course = 3 and at freshman level.
http://www.newinterviewquestions.com/interview/370

What do you mean by virtual methods?
http://www.newinterviewquestions.com/interview/371

What do you mean by static methods?
http://www.newinterviewquestions.com/interview/372

What do mean by polymorphism, inheritance, encapsulation?
http://www.newinterviewquestions.com/interview/373

What are the advantages of OOPL?
http://www.newinterviewquestions.com/interview/374

How many methods do u implement if implement the Serializable Interface?
http://www.newinterviewquestions.com/interview/375

Are there any other ‘marker’ interfaces?
http://www.newinterviewquestions.com/interview/376

What is the difference between instanceof and isInstance?
http://www.newinterviewquestions.com/interview/377

Why do you create interfaces, and when MUST you use one?
http://www.newinterviewquestions.com/interview/378

What’s the difference between the == operator and the equals() method? What test does Object.equals() use, and why?
http://www.newinterviewquestions.com/interview/379

Discuss the differences between creating a new class, extending a class and implementing an interface; and when each would be appropriate.
http://www.newinterviewquestions.com/interview/380

Given a text file, input.txt, provide the statement required
http://www.newinterviewquestions.com/interview/381

Name four methods every Java class will have.
http://www.newinterviewquestions.com/interview/382

What does the “abstract” keyword mean in front of a method? A class?
http://www.newinterviewquestions.com/interview/383

Does Java have destructors?
http://www.newinterviewquestions.com/interview/384

Are constructors inherited? Can a subclass call the parent’s class constructor? When?
http://www.newinterviewquestions.com/interview/385

Does Java have “goto”?
http://www.newinterviewquestions.com/interview/388

What does the “final” keyword mean in front of a variable? A method? A class?
http://www.newinterviewquestions.com/interview/389

Access specifiers: “public”, “protected”, “private”, nothing?
http://www.newinterviewquestions.com/interview/442

What is JDBC? Describe the steps needed to execute a SQL query using JDBC.
http://www.newinterviewquestions.com/interview/443

What is RMI?
http://www.newinterviewquestions.com/interview/444

What are native methods? How do you use them?
http://www.newinterviewquestions.com/interview/445

What does the keyword “synchronize” mean in java. When do you use it? What are the disadvantages of synchronization?
http://www.newinterviewquestions.com/interview/446

How many different types of JDBC drivers are present? Discuss them.
http://www.newinterviewquestions.com/interview/447

What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?
http://www.newinterviewquestions.com/interview/448

Describe java’s security model.
http://www.newinterviewquestions.com/interview/449

Java says “write once, run anywhere”. What are some ways this isn’t quite true?
http://www.newinterviewquestions.com/interview/450

What is the difference between an Applet and an Application?
http://www.newinterviewquestions.com/interview/451

How can you force all derived classes to implement a method present in the base class?
http://www.newinterviewquestions.com/interview/452

What are abstract classes, abstract methods?
http://www.newinterviewquestions.com/interview/453

What’s the difference between == and equals method?
http://www.newinterviewquestions.com/interview/454

Describe, in general, how java’s garbage collector works?
http://www.newinterviewquestions.com/interview/455

What is the difference between StringBuffer and String class?
http://www.newinterviewquestions.com/interview/456

How can you achieve Multiple Inheritance in Java?
http://www.newinterviewquestions.com/interview/457

What are interfaces?
http://www.newinterviewquestions.com/interview/458

What are the main differences between Java and C++?
http://www.newinterviewquestions.com/interview/459

In Java, You can create a String object as: String str = “abc”; & String str = new String(”abc”); Why cant a button object be created as : Button bt = “abc” Why is it compulsory to create a button object as: Button bt = new Button(”abc”); Why is this not compulsory in String’s case?
http://www.newinterviewquestions.com/interview/460

Why are Java ARchive (JAR) files important?
http://www.newinterviewquestions.com/interview/461

What is it reflection (introspection) ? Why is reflection possible in the Java language?
http://www.newinterviewquestions.com/interview/462

How to make application thread-safe ?
http://www.newinterviewquestions.com/interview/463

What is it object serialization?
http://www.newinterviewquestions.com/interview/464

What do you know about networking support in Java?
http://www.newinterviewquestions.com/interview/465

What you know about Corba implementation in Java?
http://www.newinterviewquestions.com/interview/466

What is Java Beans?
http://www.newinterviewquestions.com/interview/467

Compare SWING components to standard AWT.
http://www.newinterviewquestions.com/interview/468

What is layout manager ? How does it work?
http://www.newinterviewquestions.com/interview/469

What is the purpose of the toolkit in the Abstract Window Toolkit (AWT)? How does AWT work?
http://www.newinterviewquestions.com/interview/470

What are the differences between Java & C++ in terms of its features?
http://www.newinterviewquestions.com/interview/471

Is the ternary operator written x : y ? z or x ? y : z ?
http://www.newinterviewquestions.com/interview/472

What is the List interface?
http://www.newinterviewquestions.com/interview/473

What is the difference between an if statement and a switch statement?
http://www.newinterviewquestions.com/interview/474

What are the problems faced by Java programmers who don’t use layoutmanagers?
http://www.newinterviewquestions.com/interview/475

What are the two basic ways in which classes that can be run as threads may be defined?
http://www.newinterviewquestions.com/interview/476

What are synchronized methods and synchronized statements?
http://www.newinterviewquestions.com/interview/477

Which Component subclass is used for drawing and painting?
http://www.newinterviewquestions.com/interview/478

What methods are used to get and set the text label displayed by a Buttonobject?
http://www.newinterviewquestions.com/interview/479

What method must be implemented by all threads?
http://www.newinterviewquestions.com/interview/480

When is an object subject to garbage collection?
http://www.newinterviewquestions.com/interview/481

Can an unreachable object become reachable again?
http://www.newinterviewquestions.com/interview/482

How does a try statement determine which catch clause should be used tohandle an exception?
http://www.newinterviewquestions.com/interview/483

What are the Object and Class classes used for?
http://www.newinterviewquestions.com/interview/484

What modifiers may be used with a top-level class?
http://www.newinterviewquestions.com/interview/485

What is a Java package and how is it used?
http://www.newinterviewquestions.com/interview/486

What is the purpose of a statement block?
http://www.newinterviewquestions.com/interview/487

What is the difference between the prefix and postfix forms of the ++ operator?
http://www.newinterviewquestions.com/interview/488

Can try statements be nested?
http://www.newinterviewquestions.com/interview/489

To what value is a variable of the boolean type automatically initialized?
http://www.newinterviewquestions.com/interview/490

What is the difference between a public and a non-public class?
http://www.newinterviewquestions.com/interview/491

What is the difference between a Scrollbar and a ScrollPane?
http://www.newinterviewquestions.com/interview/492

What is numeric promotion?
http://www.newinterviewquestions.com/interview/493

Cheers,
Team,
New Interview Questions.com
http://www.newinterviewquestions.com

Related Articles :


Stumble
Delicious
Technorati
Twitter
Facebook

0 comments:

Post a Comment

Career Launchers!!!

Note:

This blog can be viewed using all the browsers but can be best viewed in Mozilla Browser.
 

Career Launchers!!! Copyright © 2010 LKart Theme is Designed by Lasantha