Interview questions

JAVA interview questions – page 72

2,804 questions. Tap “Show answer” to check yourself.

  1. Difference between ? System.out.println? and ? System.error.println?

  2. What is the Arraylist limit (maximum) by default ?

  3. What is <discriminator > in Hibernate? How exactlyinheritance of Object to Tables can be done? What is thebenefits of discriminator?

  4. How do u pass data from one jsp to another jsp?

  5. Why Set interface contains unique elements, what internallyimplemented for this so that it contains unique elements?

  6. Is java supports multiple inheritance? explain?

  7. What is API 2.0?

  8. How can u do kernal upgrade in dual stack?

  9. Tell me real world example of polymorphism and encapsulation .

  10. How to call One constructor from another;

  11. If a multi threaded Java program has started numerous numberof threads, at any point in time how to know which thread iscurrently executing/running ?

  12. What is the need to implement Serializable interface (withno methods) for objects which are to be serialized ? We can write our own functionality which writes objects tostreams then why we need to implement and tell JVM thatwhich objects can be serialized.

  13. How many types of thread in java? give the name

  14. For what purpose we use applets ?

  15. What is the DynaActionForm? How we implement thedynaactionform ? can u please tell me the way to implement?in understandable way?

  16. How to create Connection interface object because it is Interface , Interface is not instansiated?

  17. Diff vector arraylist

  18. Class A{ public void disp(int a,int b) { System.out.println("hai"); }}class B{ public void disp(int a,int b,int c) { System.out.println("hai"); }}above program is overloading or overriding?

  19. What is mean by API ?

  20. How can you switch one module to another module by switch action class ?

  21. Class A{ some variables; public void a()throws Excepion1,Exception2{...}}class B extends A{variables...public void a()throws E2,E3{...}}Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes...

  22. Difference between array and arraylist.

  23. Write a program for Sum of the digits for a given numberEx: suppose user entered Number is 1214,It should calculate the above number like 1+2+1+4 = 8

  24. My JCL has 4 steps that execute PROC's P1, P2, P3 and P4 as shown below//P1EXEC PROC=P1//P2EXEC PROC=P2//P3EXEC PROC=P3//P4EXEC PROC=P4There are four steps S1, S2, S3 and S4 in each PROC's (i.e. P1, P2, P3 and P4)I want to execute only step S2 of PROC P2 and no other steps or PROC's. How do you achieve this?

  25. We have two applications A1 & A2 both are accesing the same databse table employee at the same time how we will manage this so that both application can get the correct no of emloyee while A1 is inserting a employee at the same time while other applicatuion is getting the empployee list.

  26. How to sort the elements in HashMap

  27. Suppose multiple threads accessing a registry key at a time. In that case which synchronization object you will use?

  28. Difference between abstract class and Interfaces in Java

  29. How to Create A Wapper Class in core Java and Why are Use in java?

  30. What is the use of clone() in real time scenario?

Companies that ask JAVA questions