Achive Summary

Top Java & J2E interview FAQ, Top C, C++ & .net interview FAQ, Cricket World Cup Schedule, Recent Job Openning In various Firms, Infosys pattern changed, Top 50 Interview puzzles, Non - Technical Interview FAQ's, Infy Prepration -1, HR FAQ Achives, Brief of Petronas Towers , SAP - Boom, Akshardham - New Delhi, IT Ebooks, Top Virus On Globe, Latest CPU's nd Motherboards,World's 100 Richest People, Top 10 Richest in INDIA, Santa's JOKES,Perl FAQ's and Many More !!!

Thursday, March 1, 2007

Top 100 Java / J2EE Questions Asked in Actual Interviews

  • How do I instantiate a bean whose constructor accepts parameters using the useBean tag?
    http://www.coolinte rview.com/ interview/ 340

  • Replacing Characters in a String?
    http://www.coolinte rview.com/ interview/ 341

  • Searching a String?
    http://www.coolinte rview.com/ interview/ 342

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

  • What is a transient variable?
    http://www.coolinte rview.com/ interview/ 344

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

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

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

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

  • What is the serialization?
    http://www.coolinte rview.com/ interview/ 349

  • What are synchronized methods and synchronized statements?
    http://www.coolinte rview.com/ interview/ 350

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

  • What is the purpose of finalization?
    http://www.coolinte rview.com/ interview/ 352

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

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

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

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

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

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

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

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

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

  • What is the ResourceBundle class?
    http://www.coolinte rview.com/ interview/ 362

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

  • What is Serialization and deserialization?
    http://www.coolinte rview.com/ interview/ 364

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

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

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

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

  • What are the disadvantages of using threads?
    http://www.coolinte rview.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.coolinte rview.com/ interview/ 370

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

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

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

  • What are the advantages of OOPL?
    http://www.coolinte rview.com/ interview/ 374

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

  • Are there any other 'marker' interfaces?
    http://www.coolinte rview.com/ interview/ 376

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

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

  • What's the difference between the == operator and the equals() method? What test does Object.equals( ) use, and why?
    http://www.coolinte rview.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.coolinte rview.com/ interview/ 380

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

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

  • What does the "abstract" keyword mean in front of a method? A class?
    http://www.coolinte rview.com/ interview/ 383

  • Does Java have destructors?
    http://www.coolinte rview.com/ interview/ 384

  • Are constructors inherited? Can a subclass call the parent's class constructor? When?
    http://www.coolinte rview.com/ interview/ 385

  • What synchronization constructs does Java provide? How do they work?
    http://www.coolinte rview.com/ interview/ 386

  • Why "bytecode"? Can you reverse-engineer the code from bytecode?
    http://www.coolinte rview.com/ interview/ 387

  • Does Java have "goto"?
    http://www.coolinte rview.com/ interview/ 388

  • What does the "final" keyword mean in front of a variable? A method? A class?
    http://www.coolinte rview.com/ interview/ 389

  • Access specifiers: "public", "protected", "private", nothing?
    http://www.coolinte rview.com/ interview/ 442

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

  • What is RMI?
    http://www.coolinte rview.com/ interview/ 444

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

  • What does the keyword "synchronize" mean in java. When do you use it? What are the disadvantages of synchronization?
    http://www.coolinte rview.com/ interview/ 446

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

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

  • Describe java's security model.
    http://www.coolinte rview.com/ interview/ 449

  • Java says "write once, run anywhere". What are some ways this isn't quite true?
    http://www.coolinte rview.com/ interview/ 450

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

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

  • What are abstract classes, abstract methods?
    http://www.coolinte rview.com/ interview/ 453

  • What's the difference between == and equals method?
    http://www.coolinte rview.com/ interview/ 454

  • Describe, in general, how java's garbage collector works?
    http://www.coolinte rview.com/ interview/ 455

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

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

  • What are interfaces?
    http://www.coolinte rview.com/ interview/ 458

  • What are the main differences between Java and C++?
    http://www.coolinte rview.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.coolinte rview.com/ interview/ 460

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

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

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

  • What is it object serialization?
    http://www.coolinte rview.com/ interview/ 464

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

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

  • What is Java Beans?
    http://www.coolinte rview.com/ interview/ 467

  • Compare SWING components to standard AWT.
    http://www.coolinte rview.com/ interview/ 468

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

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

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

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

  • What is the List interface?
    http://www.coolinte rview.com/ interview/ 473

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

  • What are the problems faced by Java programmers who don't use layoutmanagers?
    http://www.coolinte rview.com/ interview/ 475

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

  • What are synchronized methods and synchronized statements?
    http://www.coolinte rview.com/ interview/ 477

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

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

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

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

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

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

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

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

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

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

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

  • Can try statements be nested?
    http://www.coolinte rview.com/ interview/ 489

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

  • What is the difference between a public and a non-public class?
    http://www.coolinte rview.com/ interview/ 491
  • No comments: