Labels

.NET Job Questions About Java Absract class Abstract class Abstract Class and Interface Aggregation ajax aop apache ofbiz Apache ofbiz tutrial Association authentication autocad basics batch Binary Tree bootstrap loader in java build Builder design pattern C++ Job Questions caching CallableStatement in java certifications Chain of responsibility Design pattern charts check parentheses in a string Classes classloader in java classloading concept code quality collage level java program Composition concurrency Concurrency Tutorial Converting InputStream to String Core Java core java concept core java interview questions Core Java Interview Questions Core Java Questions core java tutorial CyclicBarrier in Java data structures database Database Job Questions datetime in c# DB Db2 SQL Replication deserialization in java Design Patterns designpatterns Downloads dtd Eclipse ejb example/sample code exception handling in core java file handling injava File I/O vs Memory-Mapped Filter first program in spring flex Garbage Collection Generics concept in java grails groovy and grails Guice Heap hibernate Hibernate Interview Questions how-to IBM DB2 IBM DB2 Tutorial ide immutable Interceptor Interface interview Interview Questions for Advanced JAVA investment bank j2ee java JAVA Code Examples Java 7 java changes java class loading JAVA Classes and Objects Java Classloader concept Java classloading concept java cloning concept java collection Java collection interview questions Java Collections java concurrency Java CountDownLatch java definiton Java design pattern Java EE 5 Java EE 6 Java Exceptions Java file Java Garbage Collection Java generics Java Glossary java hot concept java immutable concept Java Interface Java interview Question java interview question 2012 java interview question answer Java Interview Questions Java Interview Questions and Answers java interview topic java investment bank Java Job Questions java multithreading java multithreading concept java new features Java Packages java proxy object java questions Java Serialization Java serialization concept java serialization interview question java session concept java string Java Swings Questions java synchronization java threading Java Threads Questions java tutorial java util; java collections; java questions java volatile java volatile interview question Java Wrapper Classes java.java1.5 java.lang.ClassCastException JavaNotes javascript JAX-WS jdbc JDBC JDBC Database connection jdk 1.5 features JDK 1.5 new features Concurrent HashMap JMS interview question JMS tutorial job JSESSIONID concept JSESSIONID interview Question JSF jsp JSP Interview Question JSP taglib JSTL with JSP Junit Junit Concept Junit interview question.Best Practices to write JUnit test cases in Java JVM Linux - Unix tutorial Marker Interfaces MD5 encryption and decryption messaging MNC software java interview question musix NCR java interview question Networking Job Questions news Object Serialization Objects ojdbc14.jar OOP Oracle Oracle SQL Query for two timestamp difference orm own JavaScript function call in Apache ofbiz Packages Palm Apps patterns pdf persistence Portal Portlet Spring Integration Prime number test in java programs Rails Reboot remote computers REST Ruby Sample application schema SCJP security Senior java developer interviews servlet3 servlets session tracking singleton design pattern Spring Spring 2.5 Framework spring ebook Spring framework concept spring MVC spring pdf Spring Security Spring Security interview questions SQL SQL performance SQL Query to create xml file Sql Query tuning ssis and ssrs StAX and XML string concept string immutable string in java strings struts Struts2 Struts2 integration synchronization works in java Technical Interview testing tips Tomcat top Tutorial Volatile in deep Volatile working concept web Web Developer Job Questions web services weblogic Weblogic Application Server websphere what is JSESSIONID xml XML parsing in java XML with Java xslt


Friday, 5 July 2013

JAVA INTERVIEW QUESTIONS

    What is internationalisation? How can you achieve in java?    
   
Reply your Answer
    What does the "abstract" keyword mean in front of a method? A class?    
   
Reply your Answer
    What is the difference between instanceof and isInstance?    
   
Reply your Answer
    Is java a fully object oriented programming or not? if not why?    
   
Reply your Answer
    Which Java operator is right associative?    
   
Reply your Answer
    Addition of two numbers using Bitwise operators. Reading An 2D array using single for loop    
   
Reply your Answer
    Why we can not override static method?    
   
Reply your Answer
    How can we write our own arraylist without using collections?    
   
Reply your Answer
    Which class is extended by all other classes?    
   
Reply your Answer
    How will you perform transaction using JDBC    
   
Reply your Answer
    What is the default size of vector and StringBuffer?    
   
Reply your Answer
    Can we serialize the static variable?    
   
Reply your Answer
    Meaning - Abstract classes, abstract methods    
   
Reply your Answer
    Explain Garbage collection mechanism in Java    
   
Reply your Answer
    What is the difference between interface and abstract class ?    
   
Reply your Answer
    Given A = 1, B = 2, C = 3, D = 4 ?? Z = 26, write a java standalone program to encode the word ?TELEPHONE? into numbers.    
   
Reply your Answer
    What is Weak reference and Soft reference in java?    
   
Reply your Answer
    What is the difference between length and length() ?    
   
Reply your Answer
    What are the main differences between Java and C++?    
   
Reply your Answer
    can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program?    
   
Reply your Answer
    can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program?    
   
Reply your Answer
    What is difference between & and && in java    
   
Reply your Answer
    what is skeleton in java or J2EE??????    
   
Reply your Answer
    What is package? Define with example?    
   
Reply your Answer
    Can we override Thread's run() method?    
   
Reply your Answer
    What is the difference between exception and error?    
   
Reply your Answer
    What is JDBC? Describe the steps needed to execute a SQL query using JDBC.    
   
Reply your Answer
    Access specifiers: "public", "protected", "private", nothing?    
   
Reply your Answer
    How will you pass values from HTML page to the Servlet?    
   
Reply your Answer
    Why java is not pure object oriented language?    
   
Reply your Answer
    Explain Java security model    
   
Reply your Answer
    What is the difference between an if statement and a switch statement?    
   
Reply your Answer
    Why do we call java until.* package as a framework.    
   
Reply your Answer
    Have you ever used HashTable and Dictionary?    
   
Reply your Answer
    What restrictions are placed on method overloading?    
   
Reply your Answer
    What are the differences between JIT and HotSpot    
   
Reply your Answer
    Give example of : High severity & Low priority    
   
Reply your Answer
    Explain RMI Architecture?    
   
Reply your Answer
    Explain working of Java Virtual Machine(JVM).    
   
Reply your Answer
    Can I execute or call one applet from another applet? If so then how??? Please Reply me... Thanks

    What is the difference between Java and J2EE? Is J2EE advanced version of Java?    
   
Reply your Answer
    Difference: Java Beans, Servlets    
   
Reply your Answer
    Does java support Line by Line execution?    
   
Reply your Answer
    How to make a class or a bean serializable?    
   
Reply your Answer
    Can a double value be cast to a byte?    
   
Reply your Answer
    What is the differences between script language and programming language?    
   
Reply your Answer
    What do mean by polymorphism, inheritance, encapsulation?    
   
Reply your Answer
    1)What are the actual functions of JVM? 2)When to use a class and when to use an Abstract class? 3)what is the use of constructors other than creation of objects? 4)when to use constructors? 5)when to use Interface? 6)why java does not support pointers? 7)why multiple inheritance is not possible in java without using Interfaces?    
   
Reply your Answer
    Does Java have destructors?    
   
Reply your Answer
    can the main() method be overloaded? or overrided? and what happens when we do so?    
   
Reply your Answer
    What is the difference between Applet and japplet? What are the traverses in binary tree? Write down how will you create a Binary tree? What is constructor and virtual function? Can we call a virtual function in a constructor? give example.    
   
Reply your Answer
    What is the disadvantage of threads?    
   
Reply your Answer
    If interface has got four methods,and I like to implement only two methods, how this could be achieved?    
   
Reply your Answer
    Java says "write once, run anywhere". What are some ways this isn't quite true?    
   
Reply your Answer
    Difference between Applet and JApplet    
   
Reply your Answer
    What is cohesion and coupling in java?    
   
Reply your Answer
    What is the difference between List, Set and Map    
   
Reply your Answer
    What is the purpose of the Runtime class?    
   
Reply your Answer
    Why ArrayList is faster than Vector?    
   
Reply your Answer
    String class can be extendable? and why?
    Why JAVA not support multiple inheritance? How can we pass address of an object?    
   
Reply your Answer
    What is the difference between Iterator and Enumeration?    
   
Reply your Answer
    What are the disadvantages of using threads?    
   
Reply your Answer
    While developing one in JSP page we are sending request to Struts frame work.If we click two times submit button then First time only it should accept request and second time should reject that request in struts frame work. How we can do that in controller itself...I am waiting for your Response...    
   
Reply your Answer
    In a large-scale multi-threaded environment, how might you organise access to a shared resource (such as a database connection)?    
   
Reply your Answer
    Why there are some null interface in java. What does it mean. Give me some null interfaces in JAVA?    
   
Reply your Answer
    Advantages of Implementing Runnable over extending Thread    
   
Reply your Answer
    What is the functionality stubs and skeletons?    
   
Reply your Answer
    Why we use OOPS concepts, What is its advantage?    
   
Reply your Answer
    What is meant by static query and dynamic query?    
   
Reply your Answer
    What it the root class for all Java classes?    
   
Reply your Answer
    How Linkedlist can be implemeented in java with out using collection framework?    
   
Reply your Answer
    How many different types of JDBC drivers are present? Discuss them.    
   
Reply your Answer
    Why Java is case sensitive?    
   
Reply your Answer
    How to make application thread-safe ?    
   
Reply your Answer
    What is the mapping mechanism used by Java to identify IDL language?    
   
Reply your Answer
    How many methods do u implement if implement the Serializable Interface?    
   
Reply your Answer
    What is the difference between the Boolean & operator and the && operator?    
   
Reply your Answer
    How will you call an Applet using a Java Script function?    
   
Reply your Answer
    What is the difference between InputStream/Outputstream classes?

    How will you call an Applet using a Java Script function?    
   
Reply your Answer
    How many methods do u implement if implement the Serializable Interface?    
   
Reply your Answer
    How System.out.println() works?    
   
Reply your Answer
    Why Java is not 100% pure object oriented language?    
   
Reply your Answer
    What is the abstraction? Give example?    
   
Reply your Answer
    What gives java it's "write once and run anywhere" nature?    
   
Reply your Answer
    can we write return statement in try catch or finally block. suposse we write return 0 in try catch or finally. can we do.    
   
Reply your Answer
    How hashtable is synchronized?why hashmap is not synchronized?Can we make hashmap synchronized?    
   
Reply your Answer
    What is the difference between hiding & overriding ?    
   
Reply your Answer
    What state does a thread enter when it terminates its processing?    
   
Reply your Answer
    What is meant by distributed Application. Why we are using that in our applications?    
   
Reply your Answer
    Explain Servlet and JSP life cycle    
   
Reply your Answer
    Describe java's security model.    
   
Reply your Answer
    What is the difference between concat and append?    
   
Reply your Answer
    What is the difference between Serializalble and Externalizable interface?    
   
Reply your Answer
    How many times may an object's finalize() method be invoked by the garbage collector?    
   
Reply your Answer
    Solve it... public class test { public static void main(String[] args) { int i=5; i=i++; System.out.println("result::"+i); } }    
   
Reply your Answer
    What is the difference between Comparable and Comparator    
   
Reply your Answer
    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?    
   
Reply your Answer
    What is the difference between C++ & Java
    When we are sending the serialized array object thro the network, what is being passed ? is the value or the reference ?    
   
Reply your Answer
    What is Singleton class?    
   
Reply your Answer
    What modifiers may be used with a top-level class?    
   
Reply your Answer
    what is the first statement in construtor?    
   
Reply your Answer
    What is meant by cookies? Explain.    
   
Reply your Answer
    What is the webserver used for running the Servlets?    
   
Reply your Answer
    What is the meaning of "final" keyword?    
   
Reply your Answer
    What is the immediate superclass of the Applet class?    
   
Reply your Answer
    What class allows you to read objects directly from a stream?    
   
Reply your Answer
    What is the difference between RMI & Corba?    
   
Reply your Answer
    What is reflection API? How are they implemented    
   
Reply your Answer
    How to use C++ code in Java Program?    
   
Reply your Answer
    Can try statements be nested?    
   
Reply your Answer
    How do you know that where to use abstract class or interface?    
   
Reply your Answer
    What are interfaces?    
   
Reply your Answer
    Does garbage collection guarantee that a program will not run out of memory?    
   
Reply your Answer
    What value does read() return when it has reached the end of a file?    
   
Reply your Answer
    Can you invoke the methods on a Thread once it is stopped?    
   
Reply your Answer
    why java does not support inheritance of multiple superclasses? what is achieved by inheritance? why there is no main method in servlets/jsps?    
   
Reply your Answer
    What is the use of unicast remote object
    How would you implement a thread pool    
   
Reply your Answer
    How to use JNI in java? and what are Struts and jini?and how to apply native code in java?    
   
Reply your Answer
    Connecting to a Database and Strings Handling?    
   
Reply your Answer
    How do you download stubs from a Remote place?    
   
Reply your Answer
    Can a lock be acquired on a class?    
   
Reply your Answer
    Explain the importance of "static"keyword    
   
Reply your Answer
    IBM Interview Questions in Bangalore    
   
Reply your Answer
    Why do you create interfaces, and when MUST you use one?    
   
Reply your Answer
    What method must be implemented by all threads?    
   
Reply your Answer
    What is the priority of main thread in java?? and why??    
   
Reply your Answer
    What does the keyword "synchronize" mean in java. When do you use it? What are the disadvantages of synchronization?    
   
Reply your Answer
    Does a class inherit the constructors of its superclass?    
   
Reply your Answer
    What is the basic difference between Java and .Net    
   
Reply your Answer
    What are the main differences between jdk1.4 , jdk1.5 & jdk1.6?    
   
Reply your Answer
    What is the difference between interrupt() and join() in threads?Give an example program?    
   
Reply your Answer
    What is the difference between a break statement and a continue statement    
   
Reply your Answer
    How will you communicate between two Applets?    
   
Reply your Answer
    Why we have used to in main method in JAVA this words 1)public 2)static 3)void 4)main 5)(String args[])    
   
Reply your Answer
    What is Anonymous class,Singleton Class and Assertions?    
   
Reply your Answer
    What is synchronization and why is it important?
    How are this() and super() used with constructors?    
   
Reply your Answer
    What are the tiers in J2EE architecture?    
   
Reply your Answer
    What are the advantages of OOPL?    
   
Reply your Answer
    Which Collection class is used for FIFO in Java    
   
Reply your Answer
    When to use Interface over abstract class?    
   
Reply your Answer
    What event results from the clicking of a button?    
   
Reply your Answer
    What is meant by class loader. How many types are there. When will we use them?    
   
Reply your Answer
    Can a lock be acquired on a class?    
   
Reply your Answer
    Why default constructor of base class will be called first in java?    
   
Reply your Answer
    Can we add Hashtable/HashMap to a vector?    
   
Reply your Answer
    How does thread synchronization occurs inside a monitor?    
   
Reply your Answer
    Differences between HashList and HashMap, Set and List    
   
Reply your Answer
    When is the finally clause of a try-catch-finally statement executed?    
   
Reply your Answer
    What restrictions are placed on method overriding?    
   
Reply your Answer
    Can I create final executable from Java?    
   
Reply your Answer
    What do you mean by virtual methods?    
   
Reply your Answer
    How to create own Marker Interface with example    
   
Reply your Answer
    Strings are immutable.But String s="Hello"; String s1=s+"World"; S.O.P(s1); means printing "HelloWorld".How ?    
   
Reply your Answer
    When a thread blocks on I/O, what state does it enter    
   
Reply your Answer
    What is Constructor and Virtual function. Can we call Virtual funciton in a constructor?
    Can an exception be rethrown?    
   
Reply your Answer
    What's the difference between the == operator and the equals() method? What test does Object.equals() use, and why?    
   
Reply your Answer
    Describe, in general, how java's garbage collector works?    
   
Reply your Answer
    What is the difference between Grid and GridbagLayout?    
   
Reply your Answer
    Solve it... public class test { public static void main(String[] args) { int i=5; i=i++; System.out.println("result::"+i); } } The result wil be 5..!! and not 6 why???    
   
Reply your Answer
    Why java does not support multiple inheritance.why we go for interfaces    
   
Reply your Answer
    How can you achieve Multiple Inheritance in Java?    
   
Reply your Answer
    what is the definition of arraylist? plz write in brief.    
   
Reply your Answer
    Can a Byte object be cast to a double value?    
   
Reply your Answer
    What class is the top of the AWT event hierarchy?    
   
Reply your Answer
    How should I start learning Advanced Java? Which books to refer ???    
   
Reply your Answer
    What is super class of an Exception class?    
   
Reply your Answer
    How many methods in the Serializable interface?    
   
Reply your Answer
    What is the difference between CGI and Servlet?    
   
Reply your Answer
    Compare SWING components to standard AWT.    
   
Reply your Answer
    What is the difference between paint() and repaint() methods?    
   
Reply your Answer
    Why "bytecode"? Can you reverse-engineer the code from bytecode?    
   
Reply your Answer
    What is the main difference between access modifiers and access specifiers?    
   
Reply your Answer
    Explain RMI Architecture    
   
Reply your Answer
    Give me the example of how in real life example Thread is used...
    How do you load an Image in a Servlet?    
   
Reply your Answer
    Why the multiple inheritance is not possible in java and if possible HOW??    
   
Reply your Answer
    Can we make construtor STATIC?    
   
Reply your Answer
    What is final method?    
   
Reply your Answer
    Why multiple inheritance using classes is disadvantage in java    
   
Reply your Answer
    Explain the keywords - native, transient, volatile, finally    
   
Reply your Answer
    What is it reflection (introspection) ? Why is reflection possible in the Java language?    
   
Reply your Answer
    Why pointers are not used in java?    
   
Reply your Answer
    In Java, You can create a String object as: String str = "abc"; & String str = new String("abc");Why    
   
Reply your Answer
    What are three ways in which a thread can enter the waiting state?    
   
Reply your Answer
    Why java does not support Multiple Inheritance?    
   
Reply your Answer
    Diff between ArrayList and Vector?    
   
Reply your Answer
    What are the main features of java and c++?    
   
Reply your Answer
    How is it possible for two String objects with identical values not to be equal under the ==operator?    
   
Reply your Answer
    What is use of JVM?    
   
Reply your Answer
    What are the advantages of developing an n-tiered system?    
   
Reply your Answer
    What is the diff.between JDK 1.4 and JDK 5.0?    
   
Reply your Answer
    Can the abstract class be final?    
   
Reply your Answer
    How is it possible for two String objects with identical values not to be equal under the == operator?    
   
Reply your Answer
    Does Java have "goto"?
        Is is true that JAVA is not 100% object oriented language ?    
   
Reply your Answer
    What is the difference between attribute and parameter ?    
   
Reply your Answer
    What is Clonnable Interface in java? IS it implemented by the ProtoType Design Pattern?    
   
Reply your Answer
    How to make application thread-safe ?    
   
Reply your Answer
    Why Java is not fully object oriented?    
   
Reply your Answer
    How to create .xsl by using java?    
   
Reply your Answer
    What is the difference between Enumeration and Iterator?. When i can use Enumeration and when i can use iterator?. Can any one tell me the situation that only Enumeration could able to solve that problem and vice versa.    
   
Reply your Answer
    What is the difference between Observable and Observer?    
   
Reply your Answer
    What is the difference between a field variable and a local variable?    
   
Reply your Answer
    How does multithreading take place on a computer with a single CPU?    
   
Reply your Answer
    Which characters may be used as the second character of an identifier, but not as the first character of an identifier?    
   
Reply your Answer
    What are wrapped classes?    
   
Reply your Answer
    What are the legal operands of the instanceof operator?    
   
Reply your Answer
    What is the latest version of JDBC. What are the new features are added in that?    
   
Reply your Answer
    What is the difference b/w Iterator & ListIterator    
   
Reply your Answer
    What is the difference between throw and throws clause, explain in programatically    
   
Reply your Answer
    what is widning and narrowing ?    
   
Reply your Answer
    What is the difference between Hashmap and Hashtable?    
   
Reply your Answer
    Give a sample program in Java?    
   
Reply your Answer
    What is the corresponding Layout for Card in Swing ?
    What is the latest version of JDBC. What are the new features are added in that?    
   
Reply your Answer
    Plz give me detail difference between Tomcat & Weblogic server    
   
Reply your Answer
    What is casting?    
   
Reply your Answer
    What is JDBC API in JAVA?    
   
Reply your Answer
    What is the immediate superclass of the Dialog class?    
   
Reply your Answer
    How to communicate 2 threads each other?    
   
Reply your Answer
    what is servelet?    
   
Reply your Answer
    What is the purpose of the finally clause of a try-catch-finally statement?    
   
Reply your Answer
    How will you pass parameters in RMI. Why u serialize?    
   
Reply your Answer
    What is the difference between Vector, Array and Arraylist?    
   
Reply your Answer
    Which Component subclass is used for drawing and painting?    
   
Reply your Answer
    When is an object subject to garbage collection?    
   
Reply your Answer
    what is the difference between java and c++    
   
Reply your Answer
    What is the functionality stubs and skeletons    
   
Reply your Answer
    Can an object's finalize() method be invoked while it is reachable?    
   
Reply your Answer
    What is the use of System.err.println()?, explain clearly what is System.err.println()?, what r the access specifiers available in System class?    
   
Reply your Answer
    What is the difference between HashMap and TreeMap    
   
Reply your Answer
    What is the difference between a Scrollbar and a ScrollPane?    
   
Reply your Answer
    What is the difference between HashMap and TreeMap?    
   
Reply your Answer
    Are constructors inherited?Can a subclass call the parent's class constructor?When?
    Can i limit the initial capacity of vector in java?    
   
Reply your Answer
    How do I instantiate a bean whose constructor accepts parameters using the useBean tag?    
   
Reply your Answer
    Can you write Java code for declaration of multiple inheritance in Java ?    
   
Reply your Answer
    What is difference between string and stringtokenizer?    
   
Reply your Answer
    Is null a keyword?    
   
Reply your Answer
    Name four methods every Java class will have.    
   
Reply your Answer
    Tell me the differences between enumeration and iteration?Which can use where in realtime?    
   
Reply your Answer
    Explain 2 tier and 3 -tier Architecture?    
   
Reply your Answer
    What is the Layout for ToolBar?    
   
Reply your Answer
    Why do we need interface in Java. Instead of interface we can write the methods in the class itself. Why do we need seperate interface?    
   
Reply your Answer
    Why Java is not 100 % pure OOPS?    
   
Reply your Answer
    When is update method called?    
   
Reply your Answer
    What is the difference between array list and linked list. in which situations we are use them? which is best one?    
   
Reply your Answer
    For a 25MHz processor , what is the time taken by the instruction which needs 3 clock cycles, (a)120 nano secs (b)120 micro secs (c)75 nano secs (d)75 micro secs    
   
Reply your Answer
    Difference between wait and notify in java    
   
Reply your Answer
    What does the "final" keyword mean in front of a variable? A method? A class?    
   
Reply your Answer
    What is phantom memory    
   
Reply your Answer
    How many JVM could be run on an operating system. if only one then what is the logical reason.    
   
Reply your Answer
    What is class loader?    
   
Reply your Answer
    What method is invoked to cause an object to begin executing as a separate thread?
14
    What is a Java package and how is it used?    
   
Reply your Answer
    What is the main functionality of the Remote Reference Layer?    
   
Reply your Answer
    What is JVM Heap Size? How does it affect the performance of the Application?    
   
Reply your Answer
    What method should the key class of hashmap override    
   
Reply your Answer
    What is a string Handling? How to use it? what is difference b/w Event handling?    
   
Reply your Answer
    What is the Map interface?    
   
Reply your Answer
    How will you initialize an Applet?    
   
Reply your Answer
    Have you ever used HashTable and Dictionary    
   
Reply your Answer
    Write a program on RMI and JDBC using Stored Procedure?    
   
Reply your Answer
    What is the purpose of the System class?    
   
Reply your Answer
    Which containers may have a MenuBar?    
   
Reply your Answer
    What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?    
   
Reply your Answer
    How you can know about drivers and database information?    
   
Reply your Answer
    What is the difference between Delegation event model and Inheritance event model    
   
Reply your Answer
    What is the difference between Classpath and Import?    
   
Reply your Answer
    WHEN UR USING ARRAYLIST AND LIKEDLIST AND VECTOR AND HASHMAP AND HASHTABLE?    
   
Reply your Answer
    What is Socket. How will you create a connection?    
   
Reply your Answer
    I want to store more than 10 objects in a remote server. Which methodology will you follow?    
   
Reply your Answer
    What is JNI?    
   
Reply your Answer
    What is differnce between byte code and unicode?
15
    What is Socket. How will you create a connection?    
   
Reply your Answer
    What is differnce between byte code and unicode?    
   
Reply your Answer
    What is JVM?    
   
Reply your Answer
    What do you mean by marker interfaces? While no methods are presented in the marker interfaces,then what is the need of having them? In what circumstances we will use marker interfaces?    
   
Reply your Answer
    What is the List interface?    
   
Reply your Answer
    In servlets, we are having a web page that is invoking servlets username and password. which is cheks in the database, Suppose the second page also. If we want to verify the same information whether it will connect to the database or it will be used previous information?    
   
Reply your Answer
    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.    
   
Reply your Answer
    What is the difference between Serializalble and Externalizable interface?    
   
Reply your Answer
    What is the purpose of a statement block?    
   
Reply your Answer
    Difference between "APPLET" and "APPLICATION"    
   
Reply your Answer
    Is "abc" a primitive value?    
   
Reply your Answer
    Is there any tag in HTML to upload and download files    
   
Reply your Answer
    What do you know about networking support in Java?    
   
Reply your Answer
    What is the relationship between clipping and repainting?    
   
Reply your Answer
    JVM is platform independent/dependent?why? 2) which one is faster in execution Array List or Array? why?    
   
Reply your Answer
    Class hierarchy of AbstractMap is as follows "AbstractMap implements Map" Class hierarchy of HashMap is as follows "HashMap extends AbstractMap implements Map" When AbstractMap implements Map interface and AbstractMap is extended by HashMap, what is the use of again implementing Map interface in the declaration of HashMap?.    
   
Reply your Answer
    What is the difference between applet and swing?    
   
Reply your Answer
    Can an exception be rethrown?    
   
Reply your Answer
    1-explain singleton pattern in java 2-explain up casting and down casting 3-how do u code a singleton in java 4-How do u read XML file in java 5-gine an example of the Decorator pattern in the java API. 6-What r the services provided by the container? 7-what r bean managed transaction? 8-what r transaction attributes? 9-what is JTS?    
   
Reply your Answer
    Can we send object using Sockets
16
    If my java based application is hanging once in a while. Where would you start looking at the problem, what changes can you do? My application has a builtin Ldap client and is communicating with a Ldap server. now having a problem with the authentication, how should i start troubleshooting? I, being responsible for the application and the OS, what can i do?    
   
Reply your Answer
    Can we create object of Object class in java?    
   
Reply your Answer
    When can an object reference be cast to an interface reference?    
   
Reply your Answer
    How many modifiers are there in java?    
   
Reply your Answer
    What is the difference between a CallableStatement and PreparedStatement?    
   
Reply your Answer
    What is the difference between Observable and Observer    
   
Reply your Answer
    How can u move/drag a component placed in Swing Container?    
   
Reply your Answer
    How an Hashtable can change the iterator? Can a HashMap change the iterator?    
   
Reply your Answer
    What is the difference between transient variable,volatile variable    
   
Reply your Answer
    What is the middleware. What is the functionality of Webserver?    
   
Reply your Answer
    Is the ternary operator written x : y ? z or x ? y : z ?    
   
Reply your Answer
    What is the exact difference in between Unicast and Multicast object. Where we will use?    
   
Reply your Answer
    What is the difference between wait(), join(), sleep(), notify() & notifyall() methods?    
   
Reply your Answer
    What is difference between array list and vector.? and which one is most useful.? array list does whatever vector does so why we need the array list?    
   
Reply your Answer
    How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8characters?    
   
Reply your Answer
    Can you load the server object dynamically. If so, what are the major 3 steps involved in it?    
   
Reply your Answer
    What is the corresponding Layout for Card in Swing?    
   
Reply your Answer
    What is the base class for all swing components?    
   
Reply your Answer
    Difference: AWT, Swing    
   
Reply your Answer
    I have one java action form that i setAttribut() and on jsp get reslutset as getAttribute() and print on jsp. again i want this rsult on next jsp threw getAttribute(), but on this last page i cannot get result. so how to do this. i have tried this to setAttribute() and again get but it gets only reference on last page so please give me solution.
17
    What is list interface?    
   
Reply your Answer
    Write a java program to find out this.Consider a=1,b=2,c=3,d=4,.............z=26.Then get any five alphabets from the user and according to the alphabets take their corresponding values and all the values of that five alphabets then divide the result comes from addition with 26.Now you will get another value now print the corresponding alphabet of the result comes after division....For Example suppose if we getting a,b,c,d,e,k as the five alphabets as input from the user then we know that a=1,b=2,c=3,d=4,e=5,k=11 so now we get a+b+c+d+e+k=1+2+3+4+11=26 and then we have to do 26/26=1 then we know a=1 so the result to be printed is "a".Write a java program to perform all these calculations.And one main thing DON'T USE ANY INBUILT FUNCTIONS...    
   
Reply your Answer
    I need your help to answer the code shown below. using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace ApplicantTestin { /// The DataObject class stored with a key class DataObject { // Populate } class Program { static Hashtable Data = new Hashtable(); static string[] StaticData = new string[] { "X-Ray","Echo","Alpha", "Yankee","Bravo", "Charlie", "Delta", "Hotel", "India", "Juliet", "Foxtrot","Sierra", "Mike","Kilo", "Lima", "November", "Oscar", "Papa", "Qubec", "Romeo", "Tango","Golf", "Uniform", "Victor", "Whisky", "Zulu"}; static void Main(string[] args) { for(int i=0;i<StaticData.Length; i++) Data.Add(StaticData[i].ToLower(), new DataObject(StaticData[i]) ); while(true) { PrintSortedData(); Console.WriteLine(); Console.Write("> "); string str = Console.ReadLine(); string[] strs = str.Split(' '); if(strs[0]=="q") break; else if(strs[0]=="printv") PrintSortedDataByValue(); else if(strs[0]=="print") PrintSortedData(); else if(strs[0]=="inc") Increase(strs[1]); else if(strs[0]=="dec") Decrease(strs[1]); else if(strs[0] == "swap") Swap(strs[1], strs[2]); else if (strs[0] == "ref") Ref(strs[1], strs[2]); else if (strs[0] == "unref") UnRef(strs[1]); } } /// <summary> /// Create a reference from one data object to another. /// </summary> /// <param name="key1">The object to create the reference on</param> /// <param name="key2">The reference object</param> static void Ref(string key1, string key2) { // Populate } /// <summary> /// Removes an object reference on the object specified. /// </summary> /// <param name="key">The object to remove the reference from</param> static void UnRef(string key) { // Populate } /// <summary> /// Swap the data objects stored in the keys specified /// </summary> static void Swap(string key1, string key2) { // Populate } /// <summary> /// Decrease the Value field by 1 of the /// data object stored with the key specified /// </summary> static void Decrease(string key) { // Populate } /// <summary> /// Increase the Value field by 1 of the /// data object stored with the key specified /// </summary> static void Increase(string key) { // Populate } /// <summary> /// Prints the information in the Data hashtable to the console. /// Output should be sorted by key /// References should be printed between '<' and '>' /// The output should look like the following : /// /// /// Alpha...... -3 /// Bravo...... 2 /// Charlie.... <Zulu> /// Delta...... 1 /// Echo....... <Alpha> /// --etc--- /// /// </summary> static void PrintSortedData() { // Populate } /// <summary> /// Prints the information in the Data hashtable to the console. /// Output should be sorted by stored value /// References should be printed between '<' and '>' /// Sorting order start from max to min, larger value takes priority. /// The output should look like the following : /// /// /// Bravo...... 100 /// Echo...... 99 /// Zulu...... 98 /// Charlie.... <Zulu> /// Delta...... 34 /// Echo....... 33 /// Alpha...... <Echo> /// --etc--- /// /// </summary> static void PrintSortedDataByValue() { // Populate } } }    
   
Reply your Answer
    What is the difference between final, finally and finalized?    
   
Reply your Answer
    What is the order of intialization of variables in Java.    
   
Reply your Answer
    Why operator overloading is not allowed in Java?    
   
Reply your Answer
    What restrictions are placed on method overloading?    
   
Reply your Answer
    Statement statement = dbConnection.createStatement(); . What is Statement refers to. is it a interface or a class??    
   
Reply your Answer
    What is a refferent?    
   
Reply your Answer
    What is the immediate superclass of the Dialog class?    
   
Reply your Answer
    How single threaded model works after implementation in class, basically architecture point of view.    
   
Reply your Answer
    What is transient variable?    
   
Reply your Answer
    What are order of precedence and associativity, and how are they used?    
   
Reply your Answer
    What modifiers can be used with a local inner class?    
   
Reply your Answer
    What is the difference between String and StringBuffer?    
   
Reply your Answer
    What is the difference between run-time Polymorphism and compile-time Polymorphism?    
   
Reply your Answer
    Can you make a method final, without making the whole class final?    
   
Reply your Answer
    If an object is garbage collected, can it become reachable again?    
   
Reply your Answer
    As the Swings have more advantages over the AWT.. Why still in market are they using AWTs??    
   
Reply your Answer
    What is the sweep and paint algorithm
18
    How do you communicate in between Applets & Servlets?    
   
Reply your Answer
    How can we take various inputs from user as int,char,string,float etc ?    
   
Reply your Answer
    How are Java source code files named?    
   
Reply your Answer
    What is the protocol used by server and client?    
   
Reply your Answer
    What is the purpose of the enableEvents() method?    
   
Reply your Answer
    Explain variable shadowing with example?    
   
Reply your Answer
    What is synchronization and why is it important?    
   
Reply your Answer
    What is the difference between Java API & Applets.    
   
Reply your Answer
    Mention 5 basic difference between Array List and Vector in Java Colletion FrameWork.    
   
Reply your Answer
    How can you push data from an Applet to Servlet?    
   
Reply your Answer
    In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that?    
   
Reply your Answer
    What is the difference between ?overloading? and ?overriding??    
   
Reply your Answer
    What you know about Corba implementation in Java?    
   
Reply your Answer
    What is Serialization and deserialization?    
   
Reply your Answer
    What is the command pattern ?where it is used?    
   
Reply your Answer
    Write a program for recursive Traverse?    
   
Reply your Answer
    What is JAR file?    
   
Reply your Answer
    What is the main functionality of the Prepared Statement    
   
Reply your Answer
    Why do threads block on I/O?    
   
Reply your Answer
    When should i used notify() and notifyall() methods on threads
19
    What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class    
   
Reply your Answer
    What are the various access modifiers in Java. Differences between them?    
   
Reply your Answer
    What is the purpose of finalisation    
   
Reply your Answer
    What is the difference between File and RandomFileAccess classes?    
   
Reply your Answer
    What state is a thread in when it is executing?    
   
Reply your Answer
    What are session variable in Servlets?    
   
Reply your Answer
    Write down how will you create a binary Tree?    
   
Reply your Answer
    How can i call parameterized constructor if am instantiating a object using "Class.forName("Abc").newInstance()"?    
   
Reply your Answer
    What is the difference between function synchronization and object synchronization?    
   
Reply your Answer
    What do you mean by multiple inheritance in C++ ?    
   
Reply your Answer
    What is meant by memory leak?    
   
Reply your Answer
    What is super class of an Exception class?    
   
Reply your Answer
    What are the disadvantages of reference counting in garbage collection    
   
Reply your Answer
    What invokes a thread's run() method?    
   
Reply your Answer
    How to communicate 2 threads each other    
   
Reply your Answer
    Does JVM maintain a cache by itself? Does the JVM allocate objects in heap? Is this the OS heap or the heap maintained by the JVM? Why    
   
Reply your Answer
    How can the Checkbox class be used to create a radio button?    
   
Reply your Answer
    What is the difference between an Applet and an Application?    
   
Reply your Answer
    How would you pass a java integer by reference to another function    
   
Reply your Answer
    How to compare Stringbuffer objects?
20
    What is the difference between String and StringBuffer? Which is better to use in project?    
   
Reply your Answer
    What is the difference between RMI & Corba    
   
Reply your Answer
    Is there a separate stack for each thread in Java    
   
Reply your Answer
    How to invoke the primitive types within object in arraylist?    
   
Reply your Answer
    What is the difference between yielding and sleeping?    
   
Reply your Answer
    Explain Servlet and JSP life cycle    
   
Reply your Answer
    What is upward and downward casting in Java?    
   
Reply your Answer
    What is the serialization?    
   
Reply your Answer
    What is the order of method invocation in an Applet?    
   
Reply your Answer
    How are Observer and Observable used?    
   
Reply your Answer
    What are the high-level thread states?    
   
Reply your Answer
    Why should every class in java extend Object class?    
   
Reply your Answer
    What is the difference between a Window and a Frame?    
   
Reply your Answer
    What is the return type of a program's main() method?    
   
Reply your Answer
    What are the benefits of Swing over AWT    
   
Reply your Answer
    what happens if we execute the program? class Return{ int display(){ try{ return 1; } finally{ return 2; } } public static void main(String args[]){ Return r=new Return(); r.display(); } }    
   
Reply your Answer
    Discuss why Java 5 Executors are the preferred mechanism of creating and dispatching work in separate threads, over either directly creating Thread objects or directly using a pool of threads?    
   
Reply your Answer
    Write a java program for converting floating point number into Natural or cash number.For example take a floating point number 15.66666 and ask the user to which format this floating point number 15.66666 to be converted.If the user wants it to convert into Natural then display the output as 15.7 or if the user wants it to convert in to Cash then display the output as 15.65.Important thing is DON'T USE IN-BUILT FUNCTIONS...    
   
Reply your Answer
    What value does readLine() return when it has reached the end of a file?    
   
Reply your Answer
    What are differences between Enumeration, ArrayList, Hashtable and Collections and Collection?
21
    How all can you instantiate final members    
   
Reply your Answer
    What synchronization constructs does Java provide? How do they work?    
   
Reply your Answer
    How to create the object to the anonomous class    
   
Reply your Answer
    What is the difference between a MenuItem and a CheckboxMenuItem?    
   
Reply your Answer
    What are the various access modifiers in Java. Differences between them    
   
Reply your Answer
    Can we write main method without static keyword in java main class, give an example?    
   
Reply your Answer
    What is the argument type of a program's main() method?    
   
Reply your Answer
    What's the difference between == and equals method?    
   
Reply your Answer
    What is meant by Tomcat in java and its usage?    
   
Reply your Answer
    What are the various Collection classes available?    
   
Reply your Answer
    Given a text file, input.txt, provide the statement required    
   
Reply your Answer
    What are the differences between Java & C++ in terms of its features?    
   
Reply your Answer
    What is the difference between trusted and untrusted applet?    
   
Reply your Answer
    Why do we need interface in Java. Instead of interface we can write the methods in the class itself. Why do we need seperate interface?    
   
Reply your Answer
    How have you done validation of the fileds in your project?    
   
Reply your Answer
    What is DatagramSocket. How will you create a connection?    
   
Reply your Answer
    How do you communicate in between Applets & Servlets    
   
Reply your Answer
    When a thread blocks on I/O, what state does it enter?    
   
Reply your Answer
    How many ways do we have to load a class    
   
Reply your Answer
    How does multithreading take place on a computer with a single CPU?
22
    Can an object be garbage collected while it is still reachable?    
   
Reply your Answer
    When a thread blocks on I/O, what state does it enter?    
   
Reply your Answer
    How does multithreading take place on a computer with a single CPU?    
   
Reply your Answer
    What is the difference between Eventlistener and Eventadapter?    
   
Reply your Answer
    Differences between servlet context and servlet config?    
   
Reply your Answer
    It is a saying that static methods in JAVA programs should be minimised. What is the reason for this? any problems arise or there is any performance measures to be looked into it.    
   
Reply your Answer
    What classes of exceptions may be caught by a catch clause?    
   
Reply your Answer
    Tell me the latest versions in JAVA related areas?    
   
Reply your Answer
    Describe java's security model.    
   
Reply your Answer
    can dead thread restart?    
   
Reply your Answer
    What is JavaMail?    
   
Reply your Answer
    If we have two public classes in a single java file ,how i have to give the name of the particular java file and how i can compile it?    
   
Reply your Answer
    Can you run the product development on all operating systems?    
   
Reply your Answer
    What is the advantage of the event-delegation model over the earlier event inheritance model?    
   
Reply your Answer
    How to check infinity value? when we passed too large number in String and cast in to float value it will be give infinity. how to catch it?    
   
Reply your Answer
    When you use a struts framework, where would you place your business logic    
   
Reply your Answer
    Can an unreachable object become reachable again?    
   
Reply your Answer
    What is the difference between a Window and a Frame?    
   
Reply your Answer
    Can u kill thread manually. What is the disadvantage    
   
Reply your Answer
    It is essential to catch all types of exceptions
23
    What is the difference between a static and a non-static inner class?    
   
Reply your Answer
    Are there any other 'marker' interfaces?    
   
Reply your Answer
    What is the relationship between the Canvas class and the Graphics class?    
   
Reply your Answer
    Which java.util classes and interfaces support event handling?    
   
Reply your Answer
    What is garbage collection?Can it be forced?    
   
Reply your Answer
    How can I swap two variables without using a third variable?Can u plz tell me the logic behind it..?    
   
Reply your Answer
    What is the use of Servlets?    
   
Reply your Answer
    Difference b/w synchronized Method and synchronized statement in case of whole body of method cover by synchronized statement.    
   
Reply your Answer
    What is an object's lock and which object's have locks?    
   
Reply your Answer
    Why java shouldbe preferred,when we can get the sameoutput using VB orany otherlanguages. Howcan we convincethe interviewer ,other than givingthe simple features ofjava. could anyone pls answer this question?    
   
Reply your Answer
    What is the difference between Stream Reader and Stream Writer?    
   
Reply your Answer
    How can we use hashset in collection interface?    
   
Reply your Answer
    What class allows you to read objects directly from a stream?    
   
Reply your Answer
    What advantage do Java's layout managers provide over traditional windowingsystems?    
   
Reply your Answer
    What happens when you add a double value to a String?    
   
Reply your Answer
    What are native methods? How do you use them?    
   
Reply your Answer
    What is the relationship between an event-listener interface and an event adapterclass?    
   
Reply your Answer
    How we know a class is Serialized or not from a package    
   
Reply your Answer
    Is sizeof a keyword?    
   
Reply your Answer
    What is the difference between static and non-static variables
24
    What is the Difference between Design Pattern and Architecture? Can any one answer for this plz..    
   
Reply your Answer
    What is Garbage Collector in java?    
   
Reply your Answer
    Which containers use a border Layout as their default layout?    
   
Reply your Answer
    I studied that "Abstract class means ,it doesn't maintain the complete information about the particular class". Is it right? Justify?    
   
Reply your Answer
    What do you mean by static methods?    
   
Reply your Answer
    Do primitive types have a class representation    
   
Reply your Answer
    Write a java standalone program / method to take out all the special characters in the string provided below. //ASCII a ? z (97 ? 122) String sSENTENCE = ?This!is^a$t*e)s|t?;    
   
Reply your Answer
    What happens when you invoke a thread's interrupt method while it is sleeping or waiting?    
   
Reply your Answer
    What are the problems faced by Java programmers who don't use layout managers?    
   
Reply your Answer
    What is Difference between AWT and Swing?    
   
Reply your Answer
    What are the different XML files used in J2EE?    
   
Reply your Answer
    How can you load DLL files when your java class is loading first time ?    
   
Reply your Answer
    Why are Java ARchive (JAR) files important?    
   
Reply your Answer
    What happens when a thread cannot acquire a lock on an object?    
   
Reply your Answer
    What method is used to specify a container's layout?    
   
Reply your Answer
    What value does readLine() return when it has reached the end of a file?    
   
Reply your Answer
    What is the difference between StringBuffer and String class?    
   
Reply your Answer
    What is the difference between preemptive scheduling and time slicing?    
   
Reply your Answer
    What are the various ways of creating a thread. What is difference between them?    
   
Reply your Answer
    What restrictions are placed on the location of a package statement within a source code file?
25
    Write the Java code to declare any constant (say gravitational constant) and to get its value.    
   
Reply your Answer
    What classes of exceptions may be thrown by a throw statement?    
   
Reply your Answer
    What restrictions are placed on method overriding?    
   
Reply your Answer
    What are the files generated after using IDL to Java Compilet    
   
Reply your Answer
    How many methods in the Externalizable interface?    
   
Reply your Answer
    What is the difference between applet and application?    
   
Reply your Answer
    System Class is Used to Output text onto the Screen? it True or False    
   
Reply your Answer
    Explain the new Features of JDBC 2.0 Core API?    
   
Reply your Answer
    Can a for statement loop indefinitely?    
   
Reply your Answer
    Which class is the immediate superclass of the MenuComponent class.Object?    
   
Reply your Answer
    What interface is extended by AWT event listeners?    
   
Reply your Answer
    What is JDBC. How do you connect to the Database    
   
Reply your Answer
    Why single inheritance cannot be use in java/why we alwayz use multiple inheritances?    
   
Reply your Answer
    What do you like most with Ant    
   
Reply your Answer
    What are 4 drivers available in JDBC?    
   
Reply your Answer
    Is &&= a valid Java operator?    
   
Reply your Answer
    What is the difference between a public and a non-public class?    
   
Reply your Answer
    What is the difference between Class.forName and registerDriver()    
   
Reply your Answer
    What is the ResourceBundle class?    
   
Reply your Answer
    What's new with the stop(), suspend() and resume() methods in JDK 1.2?
26
    Java does not support multiple inheritance because different classes may have different variable with same name that may be contradicted and can cause confusions resulting in errors.Java supports it through the interfaces.A class can extend one class and can implement more than one interfaces also.those interfaces may have variables with same names.Wont they create confusion?    
   
Reply your Answer
    What design patterns have you used    
   
Reply your Answer
    What is the SimpleTimeZone class?    
   
Reply your Answer
    How can we invoke private method using refleciotn API(AccessibileObject class)?    
   
Reply your Answer
    What is serilization and deserilization    
   
Reply your Answer
    What is the Collections API?    
   
Reply your Answer
    What is the perfect definition of an Adapter class, explain with an example    
   
Reply your Answer
    How does a try statement determine which catch clause should be used tohandle an exception?    
   
Reply your Answer
    Why should we use java?    
   
Reply your Answer
    What is difference between runnable and thread ? why we use static class    
   
Reply your Answer
    How many layout's are there in java? explain each one of them    
   
Reply your Answer
    Suppose If we have variable ' I ' in run method, If I can create one or more thread each thread will occupy a separate copy or same variable will be shared?    
   
Reply your Answer
    How to call a COM object within java?    
   
Reply your Answer
    How does garbage collection work    
   
Reply your Answer
    In what situations we can use innerclass and anonymous class    
   
Reply your Answer
    What is the difference between overloading and overriding    
   
Reply your Answer
    What class is the top of the AWT event hierarchy?    
   
Reply your Answer
    How to track "memory leak" and how to prevent it in java?    
   
Reply your Answer
    What method must be implemented by all threads?    
   
Reply your Answer
    What invokes a thread's run() method?
27
    what is difference between instance and object.? what are the all difference between interface and abstract class?    
   
Reply your Answer
    what is the use of prediction word in java ?    
   
Reply your Answer
    How to access Blob and Clob data values from oracle thru java?    
   
Reply your Answer
    When a thread is created and started, what is its initial state?    
   
Reply your Answer
    What is synchronization and why is it important?    
   
Reply your Answer
    Can try statements be nested?    
   
Reply your Answer
    What is final variable?    
   
Reply your Answer
    What is the purpose of garbage collection?    
   
Reply your Answer
    Why String is not a primitive data type    
   
Reply your Answer
    What is the base class for all swing components    
   
Reply your Answer
    What is the command to know which version of java you are using    
   
Reply your Answer
    send me some interview questions on Stringhandling concept    
   
Reply your Answer
    When exactly a static block is loaded in Java ?    
   
Reply your Answer
    . Write a static method removeDuplicates(Character[] in) that returns a new array of the characters in the given array, but without any duplicate characters. Always keep the first copy of the character and remove subsequent ones. For example, if in contains b, d, a, b, f, a, g, a, a, and f, the method will return an array containing b, d a, f, and g. Hint: One way to solve this problem is to create a boolean array of the same size as the given array in and use it to keep track of which characters to keep. The values in the new boolean array will determine the size of the array to return    
   
Reply your Answer
    In Java, how are objects / values passed around    
   
Reply your Answer
    What are synchronized methods and synchronized statements?    
   
Reply your Answer
    What you know about Corba implementation in Java ?    
   
Reply your Answer
    A local inner class may be final or abstract ?    
   
Reply your Answer
    What is the purpose of using Java Beans? when should we extend JavaBean class? Please send the result of shuffles(1002,101) along with your program    
   
Reply your Answer
    What are order of precedence and associativity, and how are they used?
28
Previous << 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 >> Next
Sort By :   Latest First  |  Oldest First  |  By Rating

   
Question
   
Rating
   
Reply your Answer
    Is "abc" a primitive value?    
   
Reply your Answer
    When is an object subject to garbage collection?    
   
Reply your Answer
    Whether a Class,Method can be garbage collected or not?How?    
   
Reply your Answer
    What do you meant by private constructor? why somebody declare only private constructor.    
   
Reply your Answer
    Does a class inherit the constructors of its superclass?    
   
Reply your Answer
    How come hashcodes can be the same even if objects aren't equal?    
   
Reply your Answer
    Can wehave run() method directly without start() method in threads?    
   
Reply your Answer
    Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times. Where 3 processes are started or 3 threads are started?    
   
Reply your Answer
    Can you instantiate the Math class?    
   
Reply your Answer
    How do you declare constant values in java?    
   
Reply your Answer
    What are three ways in which a thread can enter the waiting state?    
   
Reply your Answer
    What must a class do to implement an interface?    
   
Reply your Answer
    If you have truncated using JDBC, How can you know that how much data is truncated?    
   
Reply your Answer
    What is the difference between a break statement and a continue statement?    
   
Reply your Answer
    What is the finalize method do?    
   
Reply your Answer
    What is ServerSocket. How will you create a connection    
   
Reply your Answer
    What restrictions are placed on method overloading?    
   
Reply your Answer
    Can You catch the Error? 2. Difference between compiletime exception and runtime exception? 3. How you throw user defined exception? 4. How you handle throwable while using exceptions ? 5. What are the methods available in Object ? 6. Is there any methods available in serialization ? 7. How you seralize an Object ? 8.How you get the serialized object ? 9. Any methods available in deseralization ?    
   
Reply your Answer
    What are the traverses in Binary Tree?    
   
Reply your Answer
    Can we have 3 methods in a single servlet i.e service(), doPost() and doGet() method. If yes, then what method will be called. Tell me the servlet cycle in such cases
29
    What would happen if you say this = null    
   
Reply your Answer
    What is the difference between Inheritance and Aggrigation?    
   
Reply your Answer
    how to combine two files into single file    
   
Reply your Answer
    What is difference RMI registry and OSAgent?    
   
Reply your Answer
    What modifiers may be used with a top-level class    
   
Reply your Answer
    When is update method called    
   
Reply your Answer
    What modifiers can be used with a local inner class?    
   
Reply your Answer
    What is the difference between InputStream/Outputstream classes    
   
Reply your Answer
    What is a compilation unit?    
   
Reply your Answer
    What is the difference in between the HTTPServlet and Generic Servlet. Expalin their methods. Tell me their parameter names too?    
   
Reply your Answer
    What is the difference between Comparable and Comparator?    
   
Reply your Answer
    What is difference between try and throws, as these are two different methods to handle the exceptions.    
   
Reply your Answer
    What is similarities/difference between an Abstract class and Interface?    
   
Reply your Answer
    What methods are used to get and set the text label displayed by a Buttonobject?    
   
Reply your Answer
    What are the similarities and differences between Java and C/C++?    
   
Reply your Answer
    What is the purpose of the File class?    
   
Reply your Answer
    How is rounding performed under integer division?    
   
Reply your Answer
    When is the finally clause of a try-catch-finally statement executed?    
   
Reply your Answer
    What is the difference between a while statement and a do statement?    
   
Reply your Answer
    What is meant by Session, Tell me something about HTTPSession Class?
30
    What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?    
   
Reply your Answer
    To what value is a variable of the boolean type automatically initialized?    
   
Reply your Answer
    What modifiers may be used with an interface declaration?    
   
Reply your Answer
    How would you declare a SingleThreaded servlet    
   
Reply your Answer
    Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times. Where 3 processes are started or 3 threads are started    
   
Reply your Answer
    What is serialization?    
   
Reply your Answer
    What is RMI?    
   
Reply your Answer
    What is a transient variable?    
   
Reply your Answer
    Can an anonymous class be declared as implementing an interface and extending a class?    
   
Reply your Answer
    Write a program that singleton objects returns two instances?    
   
Reply your Answer
    What state does a thread enter when it terminates its processing?    
   
Reply your Answer
    When we need of abstract class and interface?could you please tell me the realtime example?    
   
Reply your Answer
    What is autoboxing?    
   
Reply your Answer
    When should i used notify() and notifyall() methods on threads?    
   
Reply your Answer
    Which non-Unicode letter characters may be used as the first character of an identifier?    
   
Reply your Answer
    What is the % operator?    
   
Reply your Answer
    What is the diffrence between an Abstract class and Interface?    
   
Reply your Answer
    In How many ways we can request the System for the garbage collection to cleanup the memory? And what are the differences?    
   
Reply your Answer
    Please Give me an example for User defined Exception    
   
Reply your Answer
    What is difference between array & arraylist?
31
    And What situation , each of the 4 drivers used?    
   
Reply your Answer
    What is the List interface?    
   
Reply your Answer
    What is the relationship between an event-listener interface and an event-adapter class?    
   
Reply your Answer
    What is JVM    
   
Reply your Answer
    What is DriverManager?    
   
Reply your Answer
    What is the difference between Eclipse3.0 and Jbuilder tool?    
   
Reply your Answer
    If a variable is declared as private, where may the variable be accessed?    
   
Reply your Answer
    What is data encapsulation? What does it buy you    
   
Reply your Answer
    Which Component subclass is used for drawing and painting?    
   
Reply your Answer
    I want to know output of this program and the flow also public class Aquestion { private int i = giveMeJ(); private int j = 10; private int giveMeJ() { return j; } public static void main(String args[]) { System.out.println((new Aquestion()).i); } }    
   
Reply your Answer
    What are abstract classes, abstract methods?    
   
Reply your Answer
    Why java is not 100% oops    
   
Reply your Answer
    What are wrapped classes?    
   
Reply your Answer
    What is the difference in between C++ and Java. can u explain in detail?    
   
Reply your Answer
    What is the Locale class?    
   
Reply your Answer
    What happens when a thread cannot acquire a lock on an object?    
   
Reply your Answer
    What are E and PI?    
   
Reply your Answer
    Can i expand an interface?    
   
Reply your Answer
    How does Java handle integer overflows and underflows?    
   
Reply your Answer
    What is collection framework?what interfaces and classes support collection framework?
32
    if two overloaded methods are- Test(Object xyz) and test(Customer cust)[Assume Customer is a class with member name of type String].Now if we call test(null), which method will be called? why?    
   
Reply your Answer
    What is the difference between paint() and repaint() methods    
   
Reply your Answer
    Why are the methods of the Math class static?    
   
Reply your Answer
    What is J2EE?    
   
Reply your Answer
    Name the containers which uses Border Layout as their default layout?    
   
Reply your Answer
    Where the CardLayout is used?    
   
Reply your Answer
    Describe the principles of OOPS.    
   
Reply your Answer
    What is final class?    
   
Reply your Answer
    What are the primitive types in Java?    
   
Reply your Answer
    Which containers may have a MenuBar?    
   
Reply your Answer
    Which package is always imported by default?    
   
Reply your Answer
    What is meant by Servelet. What are the parameters of the service method    
   
Reply your Answer
    Name three Component subclasses that support painting?    
   
Reply your Answer
    What is difference between java.lang .Class and java.lang.ClassLoader? What is the hierarchy of ClassLoader    
   
Reply your Answer
    Why Java is not fully objective oriented    
   
Reply your Answer
    What are the modules in a J2EE application?    
   
Reply your Answer
    What are synchronized methods and synchronized statements?    
   
Reply your Answer
    Name three subclasses of the Component class?    
   
Reply your Answer
    What is the purpose of finalization in Java Programming?    
   
Reply your Answer
    What is the difference between the String and StringBuffer classes
32
    What is the life cycle of an applet    
   
Reply your Answer
    What is the difference between a Choice and a List?    
   
Reply your Answer
    What is the immediate superclass of the Applet class?    
   
Reply your Answer
    As the Swings have more advantages over the AWT.. Why still in market are they using AWTs?? plzz..i want answer..in many interviews they asked me the same.    
   
Reply your Answer
    import java.io.*; import java.lang.*; class dinput { public void show() { System.out.println("Java"); } } class dmain { public static void main(String a[]) { dsystem.dout.show(); } } import java.io.*; import java.lang.*; public final class dsystem { public static final dinput dout; } I wanted to know how exactly System.out.println() works so i tried alternate program which would run similar to System.out.println() but when i compile its giving me "variable dout might not have been initialized". Accordingly System is public final class udner java.lang package. out is a reference variable of the type PrintStream which is declared as public static final PrintStream out. println() is a non static overloaded method present in PrintStream class. My point is how can a static variable 'out' access a non static method. So i have written a program which is very similar to it. The above program dsystem class is placed in dsystem.java file which is similar to System. The dmain and dinput is placed in dmain.java file where is dinput is similar to PrintStream class and show is similar to println() method. dsystem.dout.show(); is similar to System.out.println(); But when i compile the program i get the error "variable dout might not have been initialized". I request someone to clarify my doubts.    
   
Reply your Answer
    Why we use interface in java?    
   
Reply your Answer
    Why we can't put semicolon at the end of a class in java??    
   
Reply your Answer
    What happen if we write many curly braces in main method and write println method inside it .program will compile or not?    
   
Reply your Answer
    What is the catch or declare rule for method declarations?    
   
Reply your Answer
    What is the advantage of the event-delegation model over the earlier event inheritance model?    
   
Reply your Answer
    What is the Set interface?    
   
Reply your Answer
    Name three Component subclasses that support painting?    
   
Reply your Answer
    We know that Object class is super class of every class & a class extends only one class. so how is it possible to a class to extend other than Object class?    
   
Reply your Answer
    If an object is garbage collected, can it become reachable again?    
   
Reply your Answer
    What is a daemon thread?    
   
Reply your Answer
    What synchronization constructs does Java provide? How do they work?    
   
Reply your Answer
    Are there any practical limits on the levels of subclassing? How deep can you go?    
   
Reply your Answer
    What is the difference between the String and StringBuffer classes?    
   
Reply your Answer
    Can an anonymous class be declared as implementing an interface andextending a class    
   
Reply your Answer
    Which Collection class is used for FIFO in Java?
33
    Which package is always imported by default?    
   
Reply your Answer
    What is a Singleton class, what is it's significance?    
   
Reply your Answer
    Suppose server object is not loaded into the memory, and the client requests for it, what will happen    
   
Reply your Answer
    What is the difference between yielding and sleeping in Java Programming?    
   
Reply your Answer
    Why does not support multiple Inheritance?    
   
Reply your Answer
    Name four Container classes?    
   
Reply your Answer
    Searching a String?    
   
Reply your Answer
    Can a for statement loop indefinitely?    
   
Reply your Answer
    What is the difference between synchronized block and normal block ?    
   
Reply your Answer
    What's new with the stop(), suspend() and resume() methods in JDK 1.2    
   
Reply your Answer
    What is the webserver used for running the Servlets    
   
Reply your Answer
    What value does read() return when it has reached the end of a file?    
   
Reply your Answer
    To what value is a variable of the String type automatically initialized?    
   
Reply your Answer
    Is a class a subclass of itself?    
   
Reply your Answer
    Which class should you use to obtain design information about an object?    
   
Reply your Answer
    How can a GUI component handle its own events?    
   
Reply your Answer
    What is an object's lock and which object's have locks?    
   
Reply your Answer
    What is the main difficulties that you are faced in your project?    
   
Reply your Answer
    What is the main functionality of the Prepared Statement?    
   
Reply your Answer
    Is there any difference between Execution Engine and the JIT in java?
34
    What is BYTE Code?    
   
Reply your Answer
    What is abstract method?    
   
Reply your Answer
    What is the difference between main() and Main()    
   
Reply your Answer
    What is final class    
   
Reply your Answer
    What are the differences between C++ and Java    
   
Reply your Answer
    What are the problems faced by Java programmers who don't use layoutmanagers?    
   
Reply your Answer
    Can a method be static and synchronized    
   
Reply your Answer
    What is the difference between a static and a non-static inner class?    
   
Reply your Answer
    What is the argument type of a program's main() method?    
   
Reply your Answer
    What is anonymous class?    
   
Reply your Answer
    When, where and why we are using overloading and overriding???    
   
Reply your Answer
    In what situations we can use innerclass and anonymous class    
   
Reply your Answer
    How i can validate the user, Is there any java api is there for that. Or i can use my one business logic. If both are possible, Then which one is the best way for real time.    
   
Reply your Answer
    Why should i use ejb as i can do it in servlet?    
   
Reply your Answer
    What are the files generated after using IDL to Java Compilet?    
   
Reply your Answer
    Why is collection framework called as framework?    
   
Reply your Answer
    How do you sing an Applet?    
   
Reply your Answer
    What is ServerSocket. How will you create a connection?    
   
Reply your Answer
    What is the immediate superclass of Menu?    
   
Reply your Answer
    What is the difference between the >> and >>> operators
36
    What modifiers may be used with a top-level class?    
   
Reply your Answer
    What is the difference between servlets and jsp    
   
Reply your Answer
    What is the difference between the Font and FontMetrics classes?    
   
Reply your Answer
    What are the Object and Class classes used for?    
   
Reply your Answer
    In client-server approach, how to get an IP address of remote machine, and how we can find whether tht machine is connected with server or not. I hv found one solution is pinging in background, but how we can do such pinging? how can we find out tht we r getting reply of ping?    
   
Reply your Answer
    What is Difference between AWT and Swing    
   
Reply your Answer
    What is Class.forName() does and how it is useful?    
   
Reply your Answer
    What are the various layouts available. What is the difference between them?    
   
Reply your Answer
    What is the serialization?    
   
Reply your Answer
    What happens when a thread cannot acquire a lock on an object?    
   
Reply your Answer
    What is Servlet API used for conneting database    
   
Reply your Answer
    How We Can We write our own exceptions?    
   
Reply your Answer
    How could create list which can contain super class and all of its sub class?    
   
Reply your Answer
    How you can know about drivers and database information    
   
Reply your Answer
    What is Servlet API used for conneting database?    
   
Reply your Answer
    What are E and PI?    
   
Reply your Answer
    When will a static variable is loaded?is it at compile time or runtime?    
   
Reply your Answer
    What is the Dictionary class?    
   
Reply your Answer
    Name Component subclasses that support painting in Java Programming?    
   
Reply your Answer
    Which class should you use to obtain design information about an object?
37
    Why java.lang Package is the Default package?    
   
Reply your Answer
    What is a memory footprint? How can you specify the lower and upper limits of the RAM used by the JVM? What happens when the JVM needs more memory    
   
Reply your Answer
    To a server method, the client wants to send a value 20, when this value exceeds 20 a message should be sent to the client. What will you do for achieving for this?    
   
Reply your Answer
    What is JAR file?    
   
Reply your Answer
    What is casting?    
   
Reply your Answer
    What's the difference between == and equals method?    
   
Reply your Answer
    What is the difference between Hashmap and Hashtable    
   
Reply your Answer
    What is synchronization and why is it important?    
   
Reply your Answer
    What is the difference between encapsulation & abstraction?    
   
Reply your Answer
    if interface & abstract class have same methods & abstract class also not contain any implementation for those methods which one you prefer ?    
   
Reply your Answer
    . Create a class that will bundle together several static methods for tax computations. This class should not have a constructor. Its attributes are ? basicRate?the basic tax rate as a static double variable that starts at 4 percent ? luxuryRate?the luxury tax rate as a static double variable that starts at 10 percent Its methods are ? computeCostBasic(price)?a static method that returns the given price plus the basic tax, rounded to the nearest penny. ? computeCostLuxury(price)?a static method that returns the given price plus the luxury tax, rounded to the nearest penny. ? changeBasicRateTo(newRate)?a static method that changes the basic tax rate. ? changeLuxuryRateTo(newRate)?a static method that changes the luxury tax rate. ? roundToNearestPenny(price)?a private static method that returns the given price rounded to the nearest penny. For example, if the price is 12.567, the method will return 12.57.    
   
Reply your Answer
    How do you release an object which is locked in a synchronized block    
   
Reply your Answer
    Why is the Object class super class of all the classes?    
   
Reply your Answer
    What is the difference between overloading and overriding?    
   
Reply your Answer
    What value does readLine() return when it has reached the end of a file    
   
Reply your Answer
    What is Serialization and Deserialization    
   
Reply your Answer
    What are the differences between EJB and Java beans    
   
Reply your Answer
    Discuss the differences between creating a new class, extending a class and implementing an interface; and when each would be appropriate.    
   
Reply your Answer
    whats the difference in data types of java and c++? 2)what is the use of finally block?? 3)what is encapsulation in oops?how is it achieved in Java?    
   
Reply your Answer
    What is the difference between preemptive scheduling and time slicing?
38
    What class allows you to read objects directly from a stream in Java Programming?    
   
Reply your Answer
    How can a Variable in a class other than String type be made Immutable.    
   
Reply your Answer
    What state is a thread in when it is executing?    
   
Reply your Answer
    How and when to prevent inheritance?    
   
Reply your Answer
    What is aggregation?    
   
Reply your Answer
    what is method declaration,method attributes,method modifiers and parameters    
   
Reply your Answer
    What is the GregorianCalendar class?    
   
Reply your Answer
    What is the difference between the prefix and postfix forms of the ++ operator?    
   
Reply your Answer
    How can you do multiple inheritance in Java    
   
Reply your Answer
    What is the Locale class?    
   
Reply your Answer
    What is the GregorianCalendar class?    
   
Reply your Answer
    Which arithmetic operations can result in the throwing of an ArithmeticException?    
   
Reply your Answer
    What is UML patterns?give me clear explanation    
   
Reply your Answer
    What is the difference between an if statement and a switch statement?    
   
Reply your Answer
    What is the highest-level event class of the event-delegation model?    
   
Reply your Answer
    What is the use of Servlets    
   
Reply your Answer
    Whether private,protected method can be overloaded,overrided or not?Tell me reason?    
   
Reply your Answer
    How can we do bug tracking in an intranet project for a pharmaceutical company using java,jdbc,ejb sevlet using oracle as backend can anyone guide?    
   
Reply your Answer
    What is the difference between the String and StringBuffer classes?    
   
Reply your Answer
    Where exactly we make use of Clone objects in a real time?
39
    How will you add panel to a Frame    
   
Reply your Answer
    Difference between Enumeration and Iterator    
   
Reply your Answer
    What are the two basic ways in which classes that can be run as threads may be defined?    
   
Reply your Answer
    What class of exceptions are generated by the Java run-time system?    
   
Reply your Answer
    What are the main differences between Java and C++?    
   
Reply your Answer
    What happens when you add a double value to a String?    
   
Reply your Answer
    Can we declare final variables in side a method.    
   
Reply your Answer
    What is the difference between classpath and path variable?    
   
Reply your Answer
    What is the ResourceBundle class?    
   
Reply your Answer
    What are interfaces? or How to support multiple inheritance in Java?    
   
Reply your Answer
    What is the difference between exception and error    
   
Reply your Answer
    How to position TextField in a frame so that it Should look Good.And in a manner that next one will come in next row of the first appeared.    
   
Reply your Answer
    How are the elements of a BorderLayout organized?    
   
Reply your Answer
    Can we set the time (by user) explicitly for garbage collection.?    
   
Reply your Answer
    How do you push an applet in to the servlet?    
   
Reply your Answer
    What is the main difference between input, output stream?    
   
Reply your Answer
    What is it object serialization?    
   
Reply your Answer
    What is the purpose of finalization?    
   
Reply your Answer
    What is the immediate superclass of Menu?    
   
Reply your Answer
    What restrictions are placed on the values of each case of a switch statement?
40
    What is an Iterator interface?    
   
Reply your Answer
    Canweimplement aninterface in JSP Page?If yesHow?write thecode?    
   
Reply your Answer
    To what value is a variable of the boolean type automatically initialized?    
   
Reply your Answer
    What modifiers may be used with an inner class that is a member of an outer class    
   
Reply your Answer
    What is java virtual machine and what is its uses?    
   
Reply your Answer
    What is the purpose of the Runtime class?    
   
Reply your Answer
    What is the difference between the paint() and repaint() methods?    
   
Reply your Answer
    What is the difference between static and non-static variables?    
   
Reply your Answer
    How many times may an object's finalize() method be invoked by the garbage collector?    
   
Reply your Answer
    After a thread is started, via its start() m?    
   
Reply your Answer
    How are Observer and Observable used?    
   
Reply your Answer
    How do you invoke a Servelt. What is the difference in between doPost and doGet methods?    
   
Reply your Answer
    What is the purpose of the toolkit in the Abstract Window Toolkit (AWT)? How does AWT work?    
   
Reply your Answer
    Compare SWING components to standard AWT.    
   
Reply your Answer
    Which class is extended by all other classes?    
   
Reply your Answer
    Have you used threads in Servlet?    
   
Reply your Answer
    What is collction framework?How it is working?Explain    
   
Reply your Answer
    What is the advantage if a person have Java + LDAP Skills    
   
Reply your Answer
    Is &&= a valid Java operator?    
   
Reply your Answer
    How can a dead thread be restarted?
41
    What is the Set interface?    
   
Reply your Answer
    Is there any provision in java to find the address of a particular memory location?(like & in 'C' language)    
   
Reply your Answer
    Why there is no guarentee for System.gc() method will perform garbage collection for a particular time?    
   
Reply your Answer
    In RMI, is the server object first loaded into the memory and then the stub reference is sent to the client or a stub reference is directly sent to the client    
   
Reply your Answer
    Difference ? Java, C++    
   
Reply your Answer
    What is heap in Java    
   
Reply your Answer
    When you have an object passed to a method and when the object is reassigned to a different one, then is the original reference lost    
   
Reply your Answer
    What are virtual functions?    
   
Reply your Answer
    What is the difference between an Applet and an Application?    
   
Reply your Answer
    What is a tagged interface?    
   
Reply your Answer
    What are statements in JAVA?    
   
Reply your Answer
    If a class is declared without any access modifiers, where may the class be accessed?    
   
Reply your Answer
    What is the difference between static and non-static variables?    
   
Reply your Answer
    How an Hashtable can change the iterator? Can a HashMap change the iterator?    
   
Reply your Answer
    What restrictions are placed on method overloading in Java Programming?    
   
Reply your Answer
    What is the datatypes in java?    
   
Reply your Answer
    What is layout manager ? How does it work?    
   
Reply your Answer
    What is the difference between a public and a non-public class?    
   
Reply your Answer
    I am facing problem with using the JScrollPane. Actually the knob is not working properly . It takes a lot of time to scroll nd refresh the image. Please HELP!!!    
   
Reply your Answer
    what happens if i do this=null? 2)how to swap 2 variables without using third temp variable in java? 3)constructors can not be inherited,why?
42
    Which Collection class is used for LIFO in Java?    
   
Reply your Answer
    When does the compiler supply a default constructor for a class?    
   
Reply your Answer
    What is the functionality of try, catch and finally blocks?    
   
Reply your Answer
    What is callback function?    
   
Reply your Answer
    What is the purpose of interface? And tell the difference between the class and interface?    
   
Reply your Answer
    What is the difference between an object and an instance? And give me a real time example to differentiate these two?    
   
Reply your Answer
    What is Java Beans ?    
   
Reply your Answer
    What is EJB    
   
Reply your Answer
    . Write a program in a class CharacterFrequency that counts the number of times a digit appears in a telephone number. Your program should create an array of size 10 that will hold the count for each digit from 0 to 9. Read a telephone number from the keyboard as a string. Examine each character in the phone number and increment the appropriate count in the array. Display the contents of the array.    
   
Reply your Answer
    When a thread blocks on I/O, what state does it enter?    
   
Reply your Answer
    What is the purpose of the enableEvents() method?    
   
Reply your Answer
    How are the elements of a GridLayout organized?    
   
Reply your Answer
    What is the List interface?    
   
Reply your Answer
    What is Synchronisation in threads?    
   
Reply your Answer
    What is the difference between the JDK 1.02 event model and the eventdelegationmodelintroduced with JDK 1.1    
   
Reply your Answer
    Assume you are experiencing a deadlock situation on a java server application ? what is your approach to identify the problem.?    
   
Reply your Answer
    What's new with the stop(), suspend() and resume() methods in JDK 1.2?    
   
Reply your Answer
    How can u tell HashTable is Synchronized?(IBM-chennai)    
   
Reply your Answer
    What happens if a try-catch-finally statement does not have a catch clause to handlean exception that is thrown within the body of the try statement    
   
Reply your Answer
    What is layout manager ? How does it work ?
43
    What is the difference between a while statement and a do statement?    
   
Reply your Answer
    How does Java handle integer overflows and underflows?    
   
Reply your Answer
    What is class loader    
   
Reply your Answer
    How can a GUI component handle its own events?    
   
Reply your Answer
    How are the elements of a BorderLayout organized?    
   
Reply your Answer
    What are wrapper classes?    
   
Reply your Answer
    Static functions can call only other static functions and static variables then how does public static void main(String args[]) function is successful to call non-static functions and also non static variables?    
   
Reply your Answer
    If a class has two synchronized functions, a thread enters one of the synchronized function, then is it possible for another thread to enter the second synchronized function?    
   
Reply your Answer
    Which method of the Component class is used to set the position andsize of a component    
   
Reply your Answer
    What is the command to know which version of java you are using?    
   
Reply your Answer
    What is the use of voltile specifier    
   
Reply your Answer
    What is static class?    
   
Reply your Answer
    How is rounding performed under integer division?    
   
Reply your Answer
    What is the purpose of a statement block?    
   
Reply your Answer
    What is the difference between Iterator and Enumeration    
   
Reply your Answer
    Is sizeof a keyword in Java Programming?    
   
Reply your Answer
    What are peerless components in Java Programming?    
   
Reply your Answer
    What classes of exceptions may be thrown by a throw statement?    
   
Reply your Answer
    What is the difference between a field variable and a local variable?    
   
Reply your Answer
    Can an anonymous class be declared as implementing an interface and extending a class?
44
    What restrictions are placed on the location of a package statement within asource code file?    
   
Reply your Answer
    What's the difference b/w Java command line arg.s & C command line arg.s?    
   
Reply your Answer
    Can we send object using Sockets?    
   
Reply your Answer
    What is difference in between Java Class and Bean?    
   
Reply your Answer
    What do mean by polymorphism, inheritance, encapsulation?    
   
Reply your Answer
    How are the elements of a GridBagLayout organized?    
   
Reply your Answer
    what are the other ways to prevent a class from being subclassed.one way is to declare the class final. does declaring a class private prevent it from being subclassed?    
   
Reply your Answer
    What is user defined exception    
   
Reply your Answer
    What is MVC architecture    
   
Reply your Answer
    How are the elements of a CardLayout organized?    
   
Reply your Answer
    What are the advantages of OOPL?    
   
Reply your Answer
    The real time environment , when do we go for abstract class and when do we go for interfaces , can any one please revert back in this regard?    
   
Reply your Answer
    How are commas used in the intialization and iteration parts of a for statement?    
   
Reply your Answer
    What is the preferred size of a component?    
   
Reply your Answer
    What is J2EE    
   
Reply your Answer
    What is JFC?    
   
Reply your Answer
    What are the Object and Class classes used for?    
   
Reply your Answer
    What is Synchronisation in threads    
   
Reply your Answer
    How are this() and super() used with constructors?    
   
Reply your Answer
    Searching a String
45
Previous << 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 >> Next
Sort By :   Latest First  |  Oldest First  |  By Rating

   
Question
   
Rating
   
Reply your Answer
    For which statements does it make sense to use a label?    
   
Reply your Answer
    How are Java source code files named?    
   
Reply your Answer
    What is the difference between the >> and >>> operators?    
   
Reply your Answer
    If a method is declared as protected, where may the method be accessed?    
   
Reply your Answer
    Can an object's finalize() method be invoked while it is reachable?    
   
Reply your Answer
    What is the order of method invocation in an Applet    
   
Reply your Answer
    Can I modify an object in CORBA?    
   
Reply your Answer
    What is the interface of thread?    
   
Reply your Answer
    What happens in Integer.parseInt() if the thing you pass isn't a number? And does it recognize spelled-out numbers, like "three" ?    
   
Reply your Answer
    How all can you free memory    
   
Reply your Answer
    What is class variables and instance variables?    
   
Reply your Answer
    What are some alternatives to inheritance?    
   
Reply your Answer
    Which class is the super class for all classes in java.lang package?    
   
Reply your Answer
    What an I/O filter?    
   
Reply your Answer
    What are STRUTS    
   
Reply your Answer
    What is the relationship between the Canvas class and the Graphics class?    
   
Reply your Answer
    What is the primary advantage of XML driven Java Beans    
   
Reply your Answer
    What method is used to specify a container's layout?    
   
Reply your Answer
    What is meant by flickering?    
   
Reply your Answer
    What is the difference between tomact and weblogic
46
    What is your platform's default character encoding?    
   
Reply your Answer
    What is it object serialization ?    
   
Reply your Answer
    How is serialization implemented in Java    
   
Reply your Answer
    In which package are most of the AWT events that support the event-delegation model defined?    
   
Reply your Answer
    How does >> operater works ?    
   
Reply your Answer
    What is the use of JRE and jar files. what is different between JRE and jar files.    
   
Reply your Answer
    Why the container does not support multiple layout managers    
   
Reply your Answer
    What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?    
   
Reply your Answer
    What is a Java package and how is it used?    
   
Reply your Answer
    Threading : - How can you pass data between two threads?    
   
Reply your Answer
    How do u create objects at runtime?    
   
Reply your Answer
    Is there any tag in HTML to upload and download files?    
   
Reply your Answer
    What is the use of keyword transient?    
   
Reply your Answer
    What is the difference throw and throws    
   
Reply your Answer
    What is the advantage of the event-delegation model over the earlier eventinheritancemodel    
   
Reply your Answer
    What is the Vector class?    
   
Reply your Answer
    What is a transient variable?    
   
Reply your Answer
    What is JIT? Is it bundled with JDK? If so what is the role of interpreter(java)? plz explain in detail.    
   
Reply your Answer
    What are the tiers in J2EE architecture    
   
Reply your Answer
    What is Collection?
47
    What classes of exceptions may be caught by a catch clause?    
   
Reply your Answer
    What method is invoked to cause an object to begin executing as a separatethread?    
   
Reply your Answer
    Why do threads block on I/O?    
   
Reply your Answer
    What is JAR file    
   
Reply your Answer
    In which package are most of the AWT events that support the event-delegationmodel defined    
   
Reply your Answer
    What is an abstract method?    
   
Reply your Answer
    Which java.util classes and interfaces support event handling?    
   
Reply your Answer
    What Checkbox method allows you to tell if a Checkbox is checked?    
   
Reply your Answer
    How will you pass parameters in RMI. Why u serialize    
   
Reply your Answer
    Are true and false keywords?    
   
Reply your Answer
    What are 4 drivers available in JDBC    
   
Reply your Answer
    What is JDBC. How do you connect to the Database?    
   
Reply your Answer
    Name the eight primitive Java types?    
   
Reply your Answer
    Would you like to derive data from a base class    
   
Reply your Answer
    What is the capacity of Hashtable()?    
   
Reply your Answer
    wat is the disadvantage of threads?    
   
Reply your Answer
    What restrictions are placed on method overriding?    
   
Reply your Answer
    What is a native method?    
   
Reply your Answer
    IS String is a wrapperclass? explain wrapper class    
   
Reply your Answer
    How are the elements of a GridBagLayout organized?
48
    1)whether we can set the time implicitly for the garbage collection?    
   
Reply your Answer
    How many methods do u implement if implement the Serializable Interface?    
   
Reply your Answer
    Is Iterator a Class or Interface? What is its use?    
   
Reply your Answer
    What is the Dictionary class?    
   
Reply your Answer
    Does a class inherit the constructors of its superclass in Java Programming?    
   
Reply your Answer
    How can a GUI component handle its own events in Java Programming?    
   
Reply your Answer
    i want to know the difference between these two programs mean the flow /*public class Aquestion { private int i = giveMeJ(); private int j = 10; private int giveMeJ() { return j; } public static void main(String args[]) { System.out.println((new Aquestion()).i); } } */ public class Aquestion { private int j = 10; private int i = giveMeJ(); private int giveMeJ() { return j; } public static void main(String args[]) { System.out.println((new Aquestion()).i); } }    
   
Reply your Answer
    Which class is the immediate superclass of the Container class?    
   
Reply your Answer
    What is the difference between List, Set and Map?    
   
Reply your Answer
    Describe, in general, how java's garbage collector works?    
   
Reply your Answer
    What is static variable?    
   
Reply your Answer
    How does multithreading take place on a computer with a single CPU    
   
Reply your Answer
    is it possible to refer a resource in another webapplication using ServletContext.getRequestDispatcher()? if yes how it can?    
   
Reply your Answer
    Why Java is not 100 % pure OOPS    
   
Reply your Answer
    How would you keep track of a session    
   
Reply your Answer
    If a class is declared without any access modifiers, where may the class be accessed?    
   
Reply your Answer
    Explain the Encapsulation principle.    
   
Reply your Answer
    How are this and super used?    
   
Reply your Answer
    What are the various ways of creating a thread. What is difference between them    
   
Reply your Answer
    Why not declare an ArrayList if you want to hold ints?
49
    Will there be a performance penalty if you make a method synchronized? If so, can you make any design changes to improve the performance    
   
Reply your Answer
    How We Can We write our own exceptions?    
   
Reply your Answer
    What is the difference between equals and ==?    
   
Reply your Answer
    we have been taught that whenever an object is created it always invokes a constructor, if not defined in the class then the compiler implicitly invokes it. why??? if there is a parameterized constructor in the class then the compiler does not provide the default constructor why?????    
   
Reply your Answer
    Explain the user defined Exceptions?    
   
Reply your Answer
    Name four Container classes.Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane?    
   
Reply your Answer
    What do you know about the garbate collector?    
   
Reply your Answer
    What are synchronized methods and synchronized statements?    
   
Reply your Answer
    How can we store elements in arraylist? as by using index or by node?    
   
Reply your Answer
    What is the difference between yielding and sleeping?    
   
Reply your Answer
    Write program for single objects returns two instances?    
   
Reply your Answer
    Name two subclasses of the TextComponent class?    
   
Reply your Answer
    What is the functionality of the stub?    
   
Reply your Answer
    What is garbage collection    
   
Reply your Answer
    Why pointers are not used in java    
   
Reply your Answer
    What is the % operator?    
   
Reply your Answer
    Which containers use a border Layout as their default layout?    
   
Reply your Answer
    Why do you Canvas    
   
Reply your Answer
    what will this print int i=10000 System.out.println(i*i); and explain why ?    
   
Reply your Answer
    How to Synchronize the HashMap
50
   
Question
   
Rating
   
Reply your Answer
    What is the relationship between a method's throws clause and the exceptionsthat can bethrown during the method's execution?    
   
Reply your Answer
    What is the relationship between a method's throws clause and the exceptionsthat can bethrown during    
   
Reply your Answer
    what is the difference throw and throws    
   
Reply your Answer
    1 Create a class SchoolKid that is the base class for children at a school. It should have attributes for the child?s name and age, the name of the child?s teacher, and a greeting. It should have appropriate accessor and mutator methods for each of the attributes. Derive a class ExaggeratingKid from SchoolKid, as described in the previous exercise. The new class should override the accessor method for the age, reporting the actual age plus 2. It also should override the accessor for the greeting, returning the child?s greeting concatenated with the words ?I am the best.?    
   
Reply your Answer
    Which Math method is used to calculate the absolute value of a number?    
   
Reply your Answer
    When programmer using the vector and arrylist? and when ur using linkedlist and hashmap and hashtable?    
   
Reply your Answer
    Which Math method is used to calculate the absolute value of a number?    
   
Reply your Answer
    What is the difference between Abstract class and Interface?    
   
Reply your Answer
    What is the difference between the prefix and postfix forms of the ++ operator?    
   
Reply your Answer
    When does JIT plays its role. Does JIT come along with jdk? If so then what is role of interpreter?    
   
Reply your Answer
    Scope Variables    
   
Reply your Answer
    What is client server computing?    
   
Reply your Answer
    What is the difference between Application server and Web Server ?    
   
Reply your Answer
    How to sort String, for example: abced. to change to abcde ?    
   
Reply your Answer
    Is it true the JAVA is realy a plateform indepandent?    
   
Reply your Answer
    What is the difference between yielding and sleeping?    
   
Reply your Answer
    What must a class do to implement an interface?    
   
Reply your Answer
    What is the difference between the File and RandomAccessFile classes?    
   
Reply your Answer
    What exactly is volatile & please tell the at what situation we use this key-word and please give an example as well    
   
Reply your Answer
    What are the legal operands of the instanceof operator?
51
    How is it possible for two String objects with identical values not to be equalunder the == operator?    
   
Reply your Answer
    What restrictions are placed on method overloading?    
   
Reply your Answer
    What is a native method?    
   
Reply your Answer
    Is sizeof a keyword?    
   
Reply your Answer
    What significance of protected Constructors?    
   
Reply your Answer
    What is static class    
   
Reply your Answer
    What is Collection API?    
   
Reply your Answer
    Is a class a subclass of itself?    
   
Reply your Answer
    If a class is declared without any access modifiers, where may the class beaccessed    
   
Reply your Answer
    Why are the methods of the Math class static?    
   
Reply your Answer
    What are the differences between ArrayList and a Vector    
   
Reply your Answer
    What is the life cycle of an applet?    
   
Reply your Answer
    Is there any set methods to set the background color of our java o/p screen,i.e,after completion of my program ,i want to change my background color of DOS prompt?    
   
Reply your Answer
    Which containers use a FlowLayout as their default layout?    
   
Reply your Answer
    Which containers use a FlowLayout as their default layout?    
   
Reply your Answer
    How are the elements of a GridLayout organized?    
   
Reply your Answer
    Imagine there is a class Employee. We create an object of Employee Employee a= New Employee(); If we are giving System.out.println(a); What gets printed?    
   
Reply your Answer
    What restrictions are placed on method overriding in Java Programming?    
   
Reply your Answer
    Which method of the Component class is used to set the position and size of a component?    
   
Reply your Answer
    Why is it often difficult to separate the business layer from the data access layer?
52
    What is numeric promotion?    
   
Reply your Answer
    Why we need to serialize the object    
   
Reply your Answer
    What is the difference between the paint() and repaint() methods in Java Programming?    
   
Reply your Answer
    What is a task's priority and how is it used in scheduling?    
   
Reply your Answer
    Does garbage collection guarantee that a program will not run out of memory?    
   
Reply your Answer
    What is the difference between java script and java langauge.    
   
Reply your Answer
    What is Java Beans?    
   
Reply your Answer
    How do we convert the output of the same form basic english language to the global other languages?    
   
Reply your Answer
    What is the range of the char type?    
   
Reply your Answer
    Please give me answer why we use Interface though it contain only blank implementation    
   
Reply your Answer
    What is the functionality of try, catch and finally blocks    
   
Reply your Answer
    What is an Abstract Method?    
   
Reply your Answer
    In overriding, in super class we declared a method as protected & in sub class we declared that method as private. what happens?    
   
Reply your Answer
    What is the difference between a break statement and a continue statement?    
   
Reply your Answer
    Is null a keyword?    
   
Reply your Answer
    What is the RMI and Socket?    
   
Reply your Answer
    What are the different XML files used in J2EE    
   
Reply your Answer
    What is the purpose of finalization in Java Programming?    
   
Reply your Answer
    What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?    
   
Reply your Answer
    What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy in Java Programming?
53
    What does a static inner class mean? How is it different from any other static member    
   
Reply your Answer
    Which Java operator is right associative?    
   
Reply your Answer
    How does a try statement determine which catch clause should be used to handle an exception?    
   
Reply your Answer
    When to use Interface over abstract class?    
   
Reply your Answer
    What is the difference between Reader/Writer classes?    
   
Reply your Answer
    What is clipping?    
   
Reply your Answer
    In overriding, the super class method throws I/O exception & in sub class that method throws arithmetic exception. what happens?    
   
Reply your Answer
    What is JAR file    
   
Reply your Answer
    What happens when a thread cannot acquire a lock on an object?    
   
Reply your Answer
    What are the different types of Synchronization? Is there any other way of method or class or object locking    
   
Reply your Answer
    How we can find the total number of processors available in system?    
   
Reply your Answer
    Replacing Characters in a String?    
   
Reply your Answer
    5. Create a class Rational that represents a rational number. It should have private attributes for ? The numerator (an integer) ? The denominator (an integer) and the following methods: ? Rational(numerator, denominator)?a constructor for a rational number. ? Accessor methods getNumerator and getDenominator and mutator methods setNumerator and setDenominator for the numerator and the denominator. You should use an exception to guarantee that the denominator is never zero.    
   
Reply your Answer
    How are this and super used?    
   
Reply your Answer
    I there is requirement of creating 1 Million String objects and all will be unique strings, then which of the following will be efficient and why? 1. String X="Student"; 2. String X=new String("Student");    
   
Reply your Answer
    What are the Differences between Tread class and Runnable ?    
   
Reply your Answer
    What restrictions are placed on method overriding?    
   
Reply your Answer
    What is the difference between Process and Threads?    
   
Reply your Answer
    How is it possible for two String objects with identical values not to be equalunder the ==operator    
   
Reply your Answer
    What an I/O filter?
54
Previous << 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 >> Next
Sort By :   Latest First  |  Oldest First  |  By Rating

   
Question
   
Rating
   
Reply your Answer
    What is meant by Servelet. What are the parameters of the service method?    
   
Reply your Answer
    What is the difference between Process and Threads    
   
Reply your Answer
    How will you initialize an Applet    
   
Reply your Answer
    Which characters may be used as the second character of an identifier, but notas the firstcharacter of an identifier    
   
Reply your Answer
    In RMI, is the server object first loaded into the memory and then the stub reference is sent to the client or a stub reference is directly sent to the client?    
   
Reply your Answer
    What is Collection?    
   
Reply your Answer
    can dead thread restart?    
   
Reply your Answer
    When we will use an Interface and Abstract class    
   
Reply your Answer
    Like Object class is inherited by every class, means every class that you define in java is implicitely extending one class that is Object. Similarly i want to know that which interface is implicitely implemented by every class that we define. let me know as soon as possible.    
   
Reply your Answer
    What is the relationship between clipping and repainting?    
   
Reply your Answer
    How to check for repeated patterns in a password?    
   
Reply your Answer
    Can we serialize the static members?    
   
Reply your Answer
    Can an unreachable object become reachable again?    
   
Reply your Answer
    what is daemon threads?    
   
Reply your Answer
    What is the difference between Delegation event model and Inheritance event model?    
   
Reply your Answer
    Can a Byte object be cast to a double value?    
   
Reply your Answer
    what is widning and narrowing ?    
   
Reply your Answer
    What is the difference between the Boolean & operator and the && operator?    
   
Reply your Answer
    What is numeric promotion?    
   
Reply your Answer
    What is difference in between Java Class and Bean
55
    In which case i can go for Anonymous class?    
   
Reply your Answer
    What is the preferred size of a component?    
   
Reply your Answer
    How will you perform transaction using JDBC?    
   
Reply your Answer
    How many JVM's we can run in a system?    
   
Reply your Answer
    What it the root class for all Java classes    
   
Reply your Answer
    What is the ResourceBundle class?    
   
Reply your Answer
    Doesn't the compiler always make a no-arg constructor for you?    
   
Reply your Answer
    What is the purpose of finalisation?    
   
Reply your Answer
    If a variable is declared as private, where may the variable be accessed?    
   
Reply your Answer
    What is the purpose of the File class in Java Programming?    
   
Reply your Answer
    Which method of the Component class is used to set the position and size of a component?    
   
Reply your Answer
    What is JFC    
   
Reply your Answer
    How do i upload a file from client side to server side using servlet and jsp this will happen when I click upload button on web-page?    
   
Reply your Answer
    How do you know the port number of the server program you want to talk to?    
   
Reply your Answer
    How to define an Interface?    
   
Reply your Answer
    What is the purpose of the wait(), notify(), and notifyAll() methods?    
   
Reply your Answer
    Which Container method is used to cause a container to be laid out and redisplayed?    
   
Reply your Answer
    Why multiple inheritace is not supported through classes in java ?    
   
Reply your Answer
    How to use printer option in java or is there any method to use print command?    
   
Reply your Answer
    Why main method should be declared as public and why in some versions it is mandatory and in some versions it is not mandatory??
56
    Why we cannot define constructor of super class in a sub class ?    
   
Reply your Answer
    How can u move/drag a component placed in Swing Container?    
   
Reply your Answer
    Does import make my class bigger? Does it actually compile the imported class or package into my code?    
   
Reply your Answer
    What are the two basic ways in which classes that can be run as threads may be defined?    
   
Reply your Answer
    The following code is executed by a multi-threaded environment: public void functionOne() { System.out.println("Staring itrs= " + this.cntr); for( int i=0; i<this.cntr; i++ ) { System.out.println("iteration: " + i); } System.out.println("completed"); } and when run produces: Starting itrs= 100 iteration: 1 iteration: 2 iteration: 3 iteration: 4 iteration: 5 Give at least one reason why this is happening    
   
Reply your Answer
    What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?    
   
Reply your Answer
    What are the methods in Object?    
   
Reply your Answer
    Can an abstract class be final?    
   
Reply your Answer
    What is the List interface?    
   
Reply your Answer
    When does the compiler supply a default constructor for a class?    
   
Reply your Answer
    What is an RMI?    
   
Reply your Answer
    Does Java has pointer?    
   
Reply your Answer
    What is socket? and server socket?    
   
Reply your Answer
    Under what conditions is an object's finalize() method invoked by the garbage collector?    
   
Reply your Answer
    What is the use of Interface?    
   
Reply your Answer
    What is bean. Where it can be used?    
   
Reply your Answer
    What is abstract method    
   
Reply your Answer
    What happens if a try-catch-finally statement does not have a catch clause tohandle anexception that is thrown within the body of the try statement    
   
Reply your Answer
    Will class level variables are garbage collected?    
   
Reply your Answer
    Is it necessary that there should be only one controller in MVC architechture? and why?
57
    What happens when you invoke a thread's interrupt method while it is sleeping or waiting?    
   
Reply your Answer
    What is an Iterator interface?    
   
Reply your Answer
    What modifiers may be used with an inner class that is a member of an outer class?    
   
Reply your Answer
    What is default Buffersize of any Bufferedclass?    
   
Reply your Answer
    What is a transient variable?    
   
Reply your Answer
    Why Concept Of Pointer is not there in java    
   
Reply your Answer
    How do you handle events in Java?    
   
Reply your Answer
    What is Serialization and deserialization?    
   
Reply your Answer
    How does serialization work    
   
Reply your Answer
    What is a void return type?    
   
Reply your Answer
    What is the use of Interface    
   
Reply your Answer
    Why clonning method is private? can u overload the main() method. 2)can overload the run() method. 3)what is Common Separated value.    
   
Reply your Answer
    Suppose server object is not loaded into the memory, and the client requests for it, what will happen?    
   
Reply your Answer
    What are the services in RMI?    
   
Reply your Answer
    What is Reflection. Uses of Reflection?    
   
Reply your Answer
    Which TextComponent method is used to set a TextComponent to the read-only state?    
   
Reply your Answer
    If there are 2 different versions of object streams on disk and only one object definition, how will the JVM reject the wrong one? Can you fool the JVM    
   
Reply your Answer
    What are the Object and Class classes used for?    
   
Reply your Answer
    What modifiers may be used with an inner class that is a member of an outerclass?    
   
Reply your Answer
    let say there are two interfaces like the following interface int1{ int meth1(); } interface int22{ int meth1(); } ok then i am implementing both of them in a calss as follows class mycl implements int1,int2 {} now as the rule says, if a class implements an interface it must complete its signature. now my questions is that if i define meth1(), as that method is in both interface, may i know how can i define both of that methods. please answer me    
58
    What is light weight component?    
   
Reply your Answer
    What are the modules in a J2EE application    
   
Reply your Answer
    What is a void return type?    
   
Reply your Answer
    What is the Collection interface?    
   
Reply your Answer
    What is the purpose of finalization?    
   
Reply your Answer
    Which Container method is used to cause a container to be laid out andredisplayed    
   
Reply your Answer
    Difference between HashMap and TreeMap    
   
Reply your Answer
    What is the difference between java and core java    
   
Reply your Answer
    What is polymorphism?    
   
Reply your Answer
    For what purpose java language is named as java?    
   
Reply your Answer
    What is the difference between a Choice and a List?    
   
Reply your Answer
    Can an abstract class be final?    
   
Reply your Answer
    How can a dead thread be restarted?    
   
Reply your Answer
    Are true and false keywords?    
   
Reply your Answer
    What is the purpose of finalization?    
   
Reply your Answer
    What is the difference between the >> and >>> operators?    
   
Reply your Answer
    How to access the values java to javascript?    
   
Reply your Answer
    What is the exact difference in between Unicast and Multicast object ? Where we will use ?    
   
Reply your Answer
    What is the diffrence between JRE and JVM?    
   
Reply your Answer
    In Execption handling What is exactly difference between throws and throw?
59
    What is the statament we need to use particularly when using type2 and type 4 drivers( example for type 1 jdbc.odbc.JdbcOdbcDriver)?    
   
Reply your Answer
    Why do you Canvas?    
   
Reply your Answer
    Under what conditions is an object's finalize() method invoked by the garbage collector?    
   
Reply your Answer
    What is composition?    
   
Reply your Answer
    What is the significance of null interface in Java?    
   
Reply your Answer
    Which characters may be used as the second character of an identifier, but notas the first character of an identifier?    
   
Reply your Answer
    What interface must an object implement before it can be written to a streamas an object?    
   
Reply your Answer
    What is the difference between the JDK 1.02 event model and the event delegation model introduced with JDK 1.1?    
   
Reply your Answer
    Why do you create interfaces, and when MUST you use one?    
   
Reply your Answer
    Why we write server side programs? what is its main purpose?    
   
Reply your Answer
    what are the other ways to create an object otherthan creating as new object?    
   
Reply your Answer
    Write a program that singleton objects returns two instances?    
   
Reply your Answer
    Which TextComponent method is used to set a TextComponent to the readonlystate?    
   
Reply your Answer
    How can the Checkbox class be used to create a radio button?    
   
Reply your Answer
    What is synchronization and why is it important    
   
Reply your Answer
    What is the difference between the paint() and repaint() methods?    
   
Reply your Answer
    What is working of bean in EJB    
   
Reply your Answer
    what is Uni cast Remote Object?    
   
Reply your Answer
    What happens if an exception is not caught?    
   
Reply your Answer
    I want to create two instances of a class ,But when trying for creating third instance it should not allow me to create . what i have to do for making this?
60
    What are the Object and Class classes used for?    
   
Reply your Answer
    Can there ever be more than one program running on a single port? In other words, can two applications on the same server have the same port number?    
   
Reply your Answer
    What methods are used to get and set the text label displayed by a Button object?    
   
Reply your Answer
    What advantage do Java's layout managers provide over traditional windowing systems?    
   
Reply your Answer
    What is the Map interface?    
   
Reply your Answer
    What is garbage collection?    
   
Reply your Answer
    Which is superclass of Exception?many people think that object,no there is particular class which is superclass of all exception it starts with letter B,plz tell me    
   
Reply your Answer
    How can we inherit the two independent classes in one class? for example, we have two independent classes like Class A and B. I want to inherit the methods of Class A and B.    
   
Reply your Answer
    What is multi threading ?    
   
Reply your Answer
    When we will use an Interface and Abstract class?    
   
Reply your Answer
    Connecting to a Database and Strings Handling    
   
Reply your Answer
    Which containers use a FlowLayout as their default layout?    
   
Reply your Answer
    What is the difference between Vector, Array and Arraylist    
   
Reply your Answer
    What is the difference between a MenuItem and a CheckboxMenu Item?    
   
Reply your Answer
    What is the difference between java and c and c++?    
   
Reply your Answer
    Create an applet that will draw a number of strings based upon an initial string specified by the user. If the string is n characters long, draw n strings as follows: The first string is the original one that the user typed in a text field. Each subsequent string removes the last character from the previous string. For example, if the user enters the string ?Charles?, the applet would draw Charles Charle Charl Char Cha Ch C Use a text field to get a string from the user. Then draw the strings when the user clicks a Draw button.    
   
Reply your Answer
    Which non-Unicode letter characters may be used as the first characterof an identifier?    
   
Reply your Answer
    What is the Vector class?    
   
Reply your Answer
    Why "bytecode"? Can you reverse-engineer the code from bytecode?    
   
Reply your Answer
    Can i know what are methods that a classloader calls when it is loading the class
61
    Is it advisable to depend on finalize for all cleanups    
   
Reply your Answer
    Class hierarchy of AbstractMap is as follows "AbstractMap implements Map" Class hierarchy of HashMap is as follows "HashMap extends AbstractMap implements Map" When AbstractMap implements Map interface and AbstractMap is extended by HashMap, what is the use of again implementing Map interface in the declaration of HashMap?.    
   
Reply your Answer
    What is the return type of a program's main() method?    
   
Reply your Answer
    What is the role of the webserver?    
   
Reply your Answer
    Expain about the AJAX technology in Java that is very HOT in software market. What is Jasper Report.?    
   
Reply your Answer
    What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?    
   
Reply your Answer
    Size of object in java : Is there any way in java to find of size of an object ?( like sizeof() operator of C/C++ )    
   
Reply your Answer
    What is the difference between String and String Buffer?    
   
Reply your Answer
    What interface must an object implement before it can be written to a stream as an object?    
   
Reply your Answer
    How are the elements of a CardLayout organized?    
   
Reply your Answer
    What is serialization?What is transient?What is the default value of a transient variable?    
   
Reply your Answer
    In which package are most of the AWT events that support the event-delegation model defined?    
   
Reply your Answer
    What is native method    
   
Reply your Answer
    How are this() and super() used with constructors?    
   
Reply your Answer
    As the Swings have more advantages over the AWT.. Why still in market are they using AWTs?? plzz..i want answer..in many interviews they asked me the same.    
   
Reply your Answer
    wat is the disadvantage of threads?    
   
Reply your Answer
    What class of exceptions are generated by the Java run-time system?    
   
Reply your Answer
    What is the difference between Classpath and Import    
   
Reply your Answer
    What modifiers may be used with an interface declaration?    
   
Reply your Answer
    How you can add the 10 days in the current date in jsp?
62
    What is the difference between equals and ==    
   
Reply your Answer
    What is final variable    
   
Reply your Answer
    What is root class of all java classes    
   
Reply your Answer
    In a Container there are 5 components. I want to display the all the components names, how will you do that?    
   
Reply your Answer
    What is serialization    
   
Reply your Answer
    What is serializable Interface?    
   
Reply your Answer
    What is the difference between the File and RandomAccessFile classes?    
   
Reply your Answer
    What class allows you to read objects directly from a stream?    
   
Reply your Answer
    What do you understand by Synchronization?    
   
Reply your Answer
    How are commas used in the initialization and iteration parts of a for statement?    
   
Reply your Answer
    What is the catch or declare rule for method declarations?    
   
Reply your Answer
    What is the disadvantage of paint method in Applet    
   
Reply your Answer
    write classes/methods to calculate the total length of a set of lines given the start and end points taking into account overlapping. E.g. Line 1 start: -1.4, end: 3.2 Line 2 start: 2.9, end: 4.1 etc.. Total length would be: line 1 length = 4.6 line 2 length =1.2, but as line 2 overlaps line 1 by 0.3, therefore length of set is 5.5(rather than 5.8).    
   
Reply your Answer
    What is a layout manager?    
   
Reply your Answer
    How does applet recognize the height and width.?    
   
Reply your Answer
    What advantage do Java?s layout managers provide over traditional windowing systems?    
   
Reply your Answer
    A Inner class is defined in a parameterized function of outer class then the inner class is able to access the parameters of that function?    
   
Reply your Answer
    Why java is not 100% object oriented language??    
   
Reply your Answer
    What are the Normalization Rules. Define the Normalization?    
   
Reply your Answer
    Which method of the Component class is used to set the position and size of acomponent
63
    What is the difference between the Boolean & operator and the && operator    
   
Reply your Answer
    Why do threads block on I/O    
   
Reply your Answer
    What is the difference between C++ & Java?    
   
Reply your Answer
    What is the purpose of garbage collection?    
   
Reply your Answer
    What is the Dictionary class    
   
Reply your Answer
    What happens when you add a double value to a String?    
   
Reply your Answer
    Disadvantages of Java    
   
Reply your Answer
    What is the highest-level event class of the event-delegation model?    
   
Reply your Answer
    How we can implement the constructer nesting in java    
   
Reply your Answer
    What is the purpose of the finally clause of a try-catch-finally statement?    
   
Reply your Answer
    Can there be an abstract class with no abstract methods in it?    
   
Reply your Answer
    What is the difference between Model Data and Default Model Data    
   
Reply your Answer
    How can you force all derived classes to implement a method present in the base class?    
   
Reply your Answer
    Name the eight primitive Java type.    
   
Reply your Answer
    What is the purpose of the File class?    
   
Reply your Answer
    How can you force all derived classes to implement a method present in the base class?    
   
Reply your Answer
    What are virtual functions    
   
Reply your Answer
    What is the difference between scrollbar and scrollpane?    
   
Reply your Answer
    What is the Vector class    
   
Reply your Answer
    What is inner class?
64
    What is the class containing all the methods as static?    
   
Reply your Answer
    What are the differences between AWT and Swing    
   
Reply your Answer
    What is typecasting?    
   
Reply your Answer
    What classes of exceptions may be caught by a catch clause?    
   
Reply your Answer
    what is assert function what are the type how they are used with an example    
   
Reply your Answer
    Can a lock be acquired on a class    
   
Reply your Answer
    What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1?    
   
Reply your Answer
    Which arithmetic operations can result in the throwing of anArithmeticException?    
   
Reply your Answer
    What is the difference between preemptive scheduling and time slicing in Java Programming?    
   
Reply your Answer
    Where should u use reflection in ur project? give me one example?    
   
Reply your Answer
    Imagine there is a class Employee. We create an object of Employee Employee a= New Employee(); If we are giving System.out.println(a); What gets printed?    
   
Reply your Answer
    What interface must an object implement before it can be written to a stream as an object?    
   
Reply your Answer
    What is a transient variable    
   
Reply your Answer
    How does multithreading take place on a computer with a single CPU?    
   
Reply your Answer
    What are the objects that are not subject to garbage collection?    
   
Reply your Answer
    What interface is extended by AWT event listeners?    
   
Reply your Answer
    What about protecting static variable state? If you have static methods that change the static variable state, can you still use synchronization?    
   
Reply your Answer
    I can get the size(length) of any array (let a[]) by a.length. please tell me what is this "length" word actually signifies, where it is defined in java and what is its actual definition ?    
   
Reply your Answer
    What is the difference between String and StringBuffer    
   
Reply your Answer
    What is the diffrence between an Abstract class and Interface
65
    Why does not support multiple Inheritance    
   
Reply your Answer
    Which containers use a Flow layout as their default layout?    
   
Reply your Answer
    What is the difference between importing a class and creating the object for that class    
   
Reply your Answer
    1)what are the other ways to create an object otherthan creating as new object?    
   
Reply your Answer
    How big is a reference variable?    
   
Reply your Answer
    What event results from the clicking of a button?    
   
Reply your Answer
    What is innerclass?    
   
Reply your Answer
    How to make jdbc connection a protable without specific drivers    
   
Reply your Answer
    What is JNI    
   
Reply your Answer
    Who is loading the init() method of servlet?    
   
Reply your Answer
    What is Log4j in java    
   
Reply your Answer
    Isn't it redundant to have to mark the methods final if the class is final?    
   
Reply your Answer
    Why would I want to make a class final? Doesn't that defeat the whole purpose of OO?    
   
Reply your Answer
    What are the high-level thread states?    
   
Reply your Answer
    What state does a thread enter when it terminates its processing    
   
Reply your Answer
    What is innerclass    
   
Reply your Answer
    What is the difference in between the HTTPServlet and Generic Servlet. Expalin their methods. Tell me their parameter names too    
   
Reply your Answer
    What do you know about the garbate collector    
   
Reply your Answer
    What happens if the argument you want ro pass is an object instead of a primitive?    
   
Reply your Answer
    what is the difference throw and throws    
   
Reply your Answer

66
    Does garbage collection guarantee that a program will not run out of memory    
   
Reply your Answer
    What is anonymous class    
   
Reply your Answer
    How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?    
   
Reply your Answer
    What is the Vector class    
   
Reply your Answer
    What is the difference between applet and application    
   
Reply your Answer
    What do you know about networking support in Java ?    
   
Reply your Answer
    What is an Object and how do you allocate memory to it?    
   
Reply your Answer
    What is the range of the short type?    
   
Reply your Answer
    What is the range of the short type    
   
Reply your Answer
    What is a task's priority and how is it used in scheduling?    
   
Reply your Answer
    What is marker interface?Tell name of atleast three one?    
   
Reply your Answer
    what is a green thread?    
   
Reply your Answer
    Write the Java code to declare any constant (say gravitational constant) and to get its value.    
   
Reply your Answer
    What is the difference between StringBuffer and String class?    
   
Reply your Answer
    For which statements does it make sense to use a label?    
   
Reply your Answer
    WHAT IS THE DIFFERENCE BETWEEN MULTI-THREADING AND MULTI-PROCESSING?    
   
Reply your Answer
    Explain Java Memory Model?    
   
Reply your Answer
    What does validate() pack() mean in Frames    
   
Reply your Answer
    Why arraylist(and other classes) cantnot be synchronized    
   
Reply your Answer
    What is the range of the char type
67
    What is clipping?    
   
Reply your Answer
    What is Singleton class    
   
Reply your Answer
    Why cant we compare two objects with ==,why we should use only .equals() for objects.    
   
Reply your Answer
    What are the disadvantages of using threads?    
   
Reply your Answer
    What is singleton?    
   
Reply your Answer
    What is the Map interface?    
   
Reply your Answer
    Is null a keyword    
   
Reply your Answer
    How will you pass values from HTML page to the Servlet    
   
Reply your Answer
    What happens if you try to run an executable JAR, and the end-user doesn't have java installed?    
   
Reply your Answer
    Can an object be garbage collected while it is still reachable?    
   
Reply your Answer
    What is the purpose of the System class?    
   
Reply your Answer
    What interface must an object implement before it can be written to a stream as an object?    
   
Reply your Answer
    What is a compilation unit?    
   
Reply your Answer
    What is your platform's default character encoding?    
   
Reply your Answer
    To what value is a variable of the String type automatically initialized?    
   
Reply your Answer
    What is the difference between static and non-static variables?    
   
Reply your Answer
    What is the use of JRE and jar files. what is different between JRE and jar files.    
   
Reply your Answer
    My quetion is about the protected class. it have one super and sub class example , below example i read from one pdf. package certification; public class Parent { protected int x = 9; // protected access } ---------------------------- package other; import certification.Parent; class Child extends Parent { public void testIt() { System.out.println("x is " + x); // No problem; Child inherits x Parent p = new Parent(); // Can we access x using the p reference? System.out.println("X in parent is " + p.x); // Compiler error! } } when i compile this code it dosen't give any error.even though both classes are in diffrent package. but in pdf it mentioned that it gives an error because you are trying to access the protected variable using the instance of the super class if the above code is write then what is logic behind the protected member of super class and if sub class in different package try to access the member of the super class.    
   
Reply your Answer
    Name two subclasses of the TextComponent class?    
   
Reply your Answer
    What is the notation for matrix in java?
68
    What is the relationship between Home Interface and JNDI?    
   
Reply your Answer
    What is user defined exception?    
   
Reply your Answer
    What are Transient and Volatile Modifiers?    
   
Reply your Answer
    what is widning and narrowing ?    
   
Reply your Answer
    What is the difference between string and string buffer?    
   
Reply your Answer
    What is difference in between Java Class and Bean    
   
Reply your Answer
    What is the difference between a Scrollbar and a ScrollPane?    
   
Reply your Answer
    Is null a keyword    
   
Reply your Answer
    What is runtime polimorphism? give an example program ?    
   
Reply your Answer
    What are wrapper classes    
   
Reply your Answer
    What is mutable and immutable in Strings?    
   
Reply your Answer
    What restrictions are placed on the values of each case of a switch statement?    
   
Reply your Answer
    What is the purpose of the System class in Java Programming?    
   
Reply your Answer
    What is the ResourceBundle class?    
   
Reply your Answer
    What is the difference between procedural and object-oriented programs?    
   
Reply your Answer
    What happens if an exception is not caught?    
   
Reply your Answer
    what is the difference between putting a class as abstract or if any of method in class is declared as abstract diference of these two while extending these two types of classes    
   
Reply your Answer
    What is the differance between equals() method and ==    
   
Reply your Answer
    What is nested class?    
   
Reply your Answer
    If we are having Interface A,Interface B,Interface C and Class D where A,B,C are Base classes and D has extended the features of all the three if A,B,C are having totally 5 methods and D has developed only 3 of them what will happen when we compile that program
69
    What is the difference between preemptive scheduling and time slicing?    
   
Reply your Answer
    I have been doing the java project using JBuilder 2.0 as front end and oracle 8i as back-end .I can't connect to oracle using JBuilder 2.0 please say detailed code for that coding. whether i have to import extra other than import java.sql.*; when ever i import the import oracle.jdbc.driver.Error"cannot access directory oracle/jdbc/driver".    
   
Reply your Answer
    What classes of exceptions may be caught by a catch clause?    
   
Reply your Answer
    If i create a object which is to be serialized then do I need to implement any methods?    
   
Reply your Answer
    I need some more information about interface. For Example there is no any functionality inside the method which is declared in any interface. Then why i want to implement that interface to my class. 2. Statement is an interface. When i say stmt.executeQuery(). I am getting the records in my ResultSet. How it is possible?.. since there is no functionality insid the methods which is declared in Statement Interface. What is happning here?    
   
Reply your Answer
    What is the difference between Assignment and Initialization?    
   
Reply your Answer
    What is the difference between .equals and ==?    
   
Reply your Answer
    What is the relationship between a method's throws clause and the exceptions that can be thrown during the method's execution?    
   
Reply your Answer
    What class allows you to read objects directly from a stream?    
   
Reply your Answer
    How can you achieve Multiple Inheritance in Java?    
   
Reply your Answer
    What invokes a thread?s run() method in Java Programming?    
   
Reply your Answer
    What is the purpose of finalization?    
   
Reply your Answer
    What is the difference between runtime polimorphism, and compiletime polimorphism ?    
   
Reply your Answer
    How do I instantiate a bean whose constructor accepts parameters using the useBean tag?    
   
Reply your Answer
    When can an object reference be cast to an interface reference?    
   
Reply your Answer
    Does java do reference counting    
   
Reply your Answer
    What is components and controllers in Java    
   
Reply your Answer
    Why String is not a primitive data type    
   
Reply your Answer
    What is casting in Java Programming?    
   
Reply your Answer
    What is the Collections API?
70
    What is the difference between yielding and sleeping    
   
Reply your Answer
    How can we emplement strutsframework using jsp or servlets. Tellme.    
   
Reply your Answer
    What are abstract classes, abstract methods?    
   
Reply your Answer
    What is the difference between the paint() and repaint() methods in Java Programming?    
   
Reply your Answer
    What is a "Java Client" ?    
   
Reply your Answer
    Why java dosen't support pointers?    
   
Reply your Answer
    When a thread is created and started, what is its initial state?    
   
Reply your Answer
    Constructor can not be inherited.Why? Tell me the reason.    
   
Reply your Answer
    How many threads will be created for a java program, when it is compail & run? and what are they?    
   
Reply your Answer
    If a method is declared as protected, where may the method be accessed?    
   
Reply your Answer
    Can you write Java code for declaration of multiple inheritance in Java ?    
   
Reply your Answer
    Name Container classes in Java Programming?    
   
Reply your Answer
    Have you used any version control?    
   
Reply your Answer
    What is interface? and what is the purpose of it? Iknow lot of people having problem in this question(even i have it). so i request some good answer to come.I need a good example for the purpose of interface    
   
Reply your Answer
    What is Reflection. Uses of Reflection    
   
Reply your Answer
    How u can implement hashmap if u r not having in JAVA?    
   
Reply your Answer
    Write a static method removeDuplicates(Character[] in) that returns a new array of the characters in the given array, but without any duplicate characters. Always keep the first copy of the character and remove subsequent ones. For example, if in contains b, d, a, b, f, a, g, a, a, and f, the method will return an array containing b, d a, f, and g. Hint: One way to solve this problem is to create a boolean array of the same size as the given array in and use it to keep track of which characters to keep. The values in the new boolean array will determine the size of the array to return    
   
Reply your Answer
    How will you add panel to a Frame?    
   
Reply your Answer
    What is the purpose of the Runtime class in Java Programming?    
   
Reply your Answer
    What is a layout manager?
71
    Given a text file, input.txt, provide the statement required to open this file with the appropriate I/O    
   
Reply your Answer
    Can some one pls tell me the exact difference between mutable and immutable ?    
   
Reply your Answer
    Which on is best string or string buffer?which one is mutable and immutable?    
   
Reply your Answer
    Diff between Application and Applet?    
   
Reply your Answer
    What is JavaMail    
   
Reply your Answer
    What is JSP?-    
   
Reply your Answer
    What is Serialization and Deserialization?    
   
Reply your Answer
    Which containers use a Border layout as their default layout?    
   
Reply your Answer
    How does multithreading take place on a computer with a single CPU?    
   
Reply your Answer
    What is RMI and steps involved in developing an RMI object?    
   
Reply your Answer
    What are the classes and interfaces for servlets?    
   
Reply your Answer
    What is the difference between constructor and method?    
   
Reply your Answer
    What are the types of statements in JDBC?    
   
Reply your Answer
    What modifiers may be used with top-level class?    
   
Reply your Answer
    What is the lifecycle of an applet?    
   
Reply your Answer
    What is Garbage Collection and how to call it explicitly?    
   
Reply your Answer
    What type of driver did you use in project?    
   
Reply your Answer
    Which containers use a border layout as their default layout?    
   
Reply your Answer
    What is the difference between process and thread?    
   
Reply your Answer
    How to define an Abstract class?
72
    What are methods and how are they defined?    
   
Reply your Answer
    What is interface and its use?    
   
Reply your Answer
    What are Encapsulation, Inheritance and Polymorphism?    
   
Reply your Answer
    How are this() and super() used with constructors in Java Programming?    
   
Reply your Answer
    What is the difference between set and list?    
   
Reply your Answer
    What are wrapper classes?    
   
Reply your Answer
    What is adapter class?    
   
Reply your Answer
    What are the states associated in the thread.?    
   
Reply your Answer
    What method is used to specify a container?s layout in Java Programming?    
   
Reply your Answer
    What is a cloneable interface and how many methods does it contain?    
   
Reply your Answer
    What is method overloading and method overriding?    
   
Reply your Answer
    What are Class, Constructor and Primitive data types?    
   
Reply your Answer
    Explain the methods, rebind() and lookup() in Naming class?    
   
Reply your Answer
    What is RMI architecture?-    
   
Reply your Answer
    What is Inet address?-    
   
Reply your Answer
    What is the difference between JDBC and ODBC?    
   
Reply your Answer
    What are cookies and how will you use them?-    
   
Reply your Answer
    What is meant by controls and what are different types of controls in AWT?    
   
Reply your Answer
    What is difference between portletContext and request object?    
   
Reply your Answer
    How are the elements of different layouts organized?
73
    What is the difference between choice and list?    
   
Reply your Answer
    When do you use codebase in applet?    
   
Reply your Answer
    What is multithreading and what are the methods for inter-thread communication and what is the class in which these methods are defined?    
   
Reply your Answer
    What is finalize() method?    
   
Reply your Answer
    What is UNICODE?    
   
Reply your Answer
    What are JSP scripting elements?    
   
Reply your Answer
    What is BDK?    
   
Reply your Answer
    What is the base class for Error and Exception?    
   
Reply your Answer
    What is a transient variable?    
   
Reply your Answer
    How are Observer and Observable used in Java Programming?    
   
Reply your Answer
    What is synchronization and why is it important in Java Programming?    
   
Reply your Answer
    What are synchronized methods and synchronized statements in Java Programming    
   
Reply your Answer
    What are three ways in which a thread can enter the waiting state in Java Programming?    
   
Reply your Answer
    Can a lock be acquired on a class in Java Programming?    
   
Reply your Answer
    What is the difference between abstract class and interface?    
   
Reply your Answer
    What is difference between overloading and overriding?    
   
Reply your Answer
    Name Component subclasses that support painting in Java Programming?    
   
Reply your Answer
    What is a native method in Java Programming?    
   
Reply your Answer
    How can you write a loop indefinitely in Java Programming?    
   
Reply your Answer
    Can an anonymous class be declared as implementing an interface and extending a class in Java Programming?    
74
    What restrictions are placed on method overloading in Java Programming?    
   
Reply your Answer
    How does multithreading take place on a computer with a single CPU in Java Programming?    
   
Reply your Answer
    What is the difference between Reader/Writer and InputStream/Output Stream?    
   
Reply your Answer
    What is OOPs?    
   
Reply your Answer
    What are the problems faced by Java programmers who don?t use layout managers?    
   
Reply your Answer
    7. Write an applet to display a solid circle that fits perfectly Inside the outline of a square. 8. Write a program to implement producer consumer problem in java using multithreading.    
   
Reply your Answer
    What is a Jar file?    
   
Reply your Answer
    What is a stream and what are the types of Streams and classes of the Streams?    
   
Reply your Answer
    What are Vector, Hashtable, LinkedList and Enumeration?    
   
Reply your Answer
    How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters in Java Programming?    
   
Reply your Answer
    What is casting?    
   
Reply your Answer
    How many ways can we track client and what are they?    
   
Reply your Answer
    Is it possible to call servlet with parameters in the URL?    
   
Reply your Answer
    What is Servlet chaining?    
   
Reply your Answer
    What is the class and interface in java to create thread and which is the most advantageous method?    
   
Reply your Answer
    What is the major difference between LinkedList and ArrayList?    
   
Reply your Answer
    What is the List interface in Java Programming?    
   
Reply your Answer
    What modifiers may be used with an inner class that is a member of an outer class in Java Programming?    
   
Reply your Answer
    What are Predefined variables or implicit objects?    
   
Reply your Answer
    How do you pass data (including JavaBeans) to a JSP from a servlet ?
    What are the types of JDBC Driver Models and explain them?    
   
Reply your Answer
    Is it possible to communicate from an applet to servlet and how many ways and how?    
   
Reply your Answer
    How do servlets handle multiple simultaneous requests?    
   
Reply your Answer
    Actually we cannot create instance for interface. but we can create instance for interface in abstract working toolkit how it is possible?    
   
Reply your Answer
    What are the steps involved for making a connection with a database or how do you connect to a database?    
   
Reply your Answer
    Are there any global variables in Java, which can be accessed by other part of your program?    
   
Reply your Answer
    What is daemon thread and which method is used to create the daemon thread?    
   
Reply your Answer
    What is deadlock?    
   
Reply your Answer
    What are different types of access modifiers?    
   
Reply your Answer
    What is the SimpleTimeZone class in Java Programming?    
   
Reply your Answer
    Name primitive Java types?    
   
Reply your Answer
    What is the purpose of the File class in Java Programming?    
   
Reply your Answer
    What is mean by re throw in Exception Handling?    
   
Reply your Answer
    Why should we go for interservlet communication?    
   
Reply your Answer
    Which Container method is used to cause a container to be laid out and redisplayed in Java Programming?    
   
Reply your Answer
    What is source and listener?    
   
Reply your Answer
    What is the difference between exception and error?    
   
Reply your Answer
    What is the difference between Integer and int?    
   
Reply your Answer
    What is an abstract class?    
   
Reply your Answer
    What is the Collections API in Java Programming?
    What is a reflection package?    
   
Reply your Answer
    What is the Vector class in Java Programming?    
   
Reply your Answer
    What is the difference between superclass and subclass?    
   
Reply your Answer
    What is the difference between this() and super()?    
   
Reply your Answer
    What is the use of bin and lib in JDK?    
   
Reply your Answer
    What is the difference between the Boolean & operator and the && operator in Java Programming?    
   
Reply your Answer
    Which package has light weight components in Java Programming?    
   
Reply your Answer
    What happens when a thread cannot acquire a lock on an object in Java Programming?    
   
Reply your Answer
    Is it possible to run java program without main method ?    
   
Reply your Answer
    What is the difference between an applet and a servlet?    
   
Reply your Answer
    What is the life cycle of a servlet?    
   
Reply your Answer
    What is an applet?    
   
Reply your Answer
    What is the purpose of the Runtime class in Java Programming?    
   
Reply your Answer
    What is the Properties class in Java Programming?    
   
Reply your Answer
    Name primitive Java types?    
   
Reply your Answer
    What is UNICODE?    
   
Reply your Answer
    What is stored procedure?    
   
Reply your Answer
    What is Server-Side Includes (SSI)?    
   
Reply your Answer
    What are the advantages of the model over the event-inheritance model?    
   
Reply your Answer
    What is the difference between applications and applets?
77
    When you will synchronize a piece of your code?    
   
Reply your Answer
    What is synchronization?    
   
Reply your Answer
    Can you have an inner class inside a method and what variables can you access?    
   
Reply your Answer
    What is meant by Inheritance and what are its advantages?    
   
Reply your Answer
    Does garbage collection guarantee that a program will not run out of memory?    
   
Reply your Answer
    What is final, finalize() and finally?    
   
Reply your Answer
    How many ways can an argument be passed to a subroutine and explain them?    
   
Reply your Answer
    Which class is the superclass for every class in Java Programming?    
   
Reply your Answer
    What is the purpose of the System class in Java Programming?    
   
Reply your Answer
    What is the difference between the Font and FontMetrics classes in Java Programming?    
   
Reply your Answer
    What are JSP Directives?    
   
Reply your Answer
    How are Servlets and JSP Pages related?    
   
Reply your Answer
    What is a Java Bean?    
   
Reply your Answer
    What are the different servers available for developing and deploying Servlets?    
   
Reply your Answer
    What is session tracking and how do you track a user session in servlets?    
   
Reply your Answer
    What is the difference between TCP/IP and UDP?    
   
Reply your Answer
    How do you set security in applets?    
   
Reply your Answer
    What is the difference between Array and vector?    
   
Reply your Answer
    What is a package?    
   
Reply your Answer
    What are wrapped classes in Java Programming?
78
    What is the purpose of the finally clause of a try-catch-finally statement in Java Programming?    
   
Reply your Answer
    What is the Map interface in Java Programming?    
   
Reply your Answer
    What is URL?    
   
Reply your Answer
    What is Domain Naming Service(DNS)?    
   
Reply your Answer
    What is JDBC?    
   
Reply your Answer
    What is the preferred size of a component in Java Programming?    
   
Reply your Answer
    How does Java handle integer overflows and underflows?    
   
Reply your Answer
    What are inner class and anonymous class?    
   
Reply your Answer
    What is an Iterator interface in Java Programming?    
   
Reply your Answer
    What is a native method in Java Programming?    
   
Reply your Answer
    What is the difference between an argument and a parameter?    
   
Reply your Answer
    What is the GregorianCalendar class in Java Programming?    
   
Reply your Answer
    Which Container method is used to cause a container to be laid out and redisplayed in Java Programming?    
   
Reply your Answer
    If a class is declared without any access modifiers, where may the class be accessed in Java Programming?    
   
Reply your Answer
    How are the elements of a GridBagLayout organized in Java Programming?    
   
Reply your Answer
    What is the difference between static and non-static variables in Java Programming?    
   
Reply your Answer
    How does multithreading take place on a computer with a single CPU in Java Programming?    
   
Reply your Answer
    What is the difference between the paint() and repaint() methods in Java Programming?    
   
Reply your Answer
    why does not a float variable accomodate with decimal point in java?    
   
Reply your Answer
    What is an I/O filter?
79
    What are drivers available?    
   
Reply your Answer
    What is an event and what are the models available for event handling?    
   
Reply your Answer
    What is JIT and its use?    
   
Reply your Answer
    What?s new with the stop(), suspend() and resume() methods in JDK 1.2?    
   
Reply your Answer
    Which containers use a FlowLayout as their default layout in Java Programming?    
   
Reply your Answer
    What state does a thread enter when it terminates its processing in Java Programming    
   
Reply your Answer
    What is the Properties class in Java Programming?    
   
Reply your Answer
    What is the purpose of the finally clause of a try-catch-finally statement in Java Programming?    
   
Reply your Answer
    How can I set a cookie in JSP?    
   
Reply your Answer
    What are JSP ACTIONS?    
   
Reply your Answer
    What is serialization and deserialization?    
   
Reply your Answer
    What is servlet?    
   
Reply your Answer
    What is the difference between doPost and doGet methods?    
   
Reply your Answer
    What is connection pooling?    
   
Reply your Answer
    How will you invoke any external process in Java? -    
   
Reply your Answer
    What is mutable object and immutable objec    
   
Reply your Answer
    What is the basic difference between string and stringbuffer object    
   
Reply your Answer
    What is the purpose of Void class?    
   
Reply your Answer
    What is reflection?    
   
Reply your Answer
    What are the approaches that you will follow for making a program very efficient?
80
    What is a DatabaseMetaData?    
   
Reply your Answer
    What is Locale?    
   
Reply your Answer
    What is the purpose of assert keyword used in JDK1.4.x?    
   
Reply your Answer
    How will you get the platform dependent values like line separator, path separator, etc., ?    
   
Reply your Answer
    What is skeleton and stub? what is the purpose of those?    
   
Reply your Answer
    What is the final keyword denotes?    
   
Reply your Answer
    What is the difference between static and non-static variables in Java Programming?    
   
Reply your Answer
    How to create and call stored procedures?    
   
Reply your Answer
    What is garbage collection? What is the process that is responsible for doing that in java?    
   
Reply your Answer
    What kind of thread is the Garbage collector thread?

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...