Java67

10 Example of String in Java

›
1. String IndexOf Example 2. String SubString Example 3. String Matches Example 4. String Length Example 5. String Empty Check Exampl...

10 points about synchronized in Java

›
1. Synchronized can only be applied to methods and code block, you can not make a variable, a class or an interface synchronized in Java....

10 points about Exception in Java

›
1. There are two kinds of exception in Java, checked and unchecked exception. Any exception, which is subclass of java.lang.Exception but...

Why Constructor Injection is better than Setter Injection

›
There is no doubt that dependency injection is good, and offer several benefits. When it comes to inject dependency, there are two main way...

IS-A vs HAS-A Relationship Example in Java

›
IS-A means two classes are part of same inheritance hierarchy, while HAS-A means two classes are not part of same inheritance hierarchy bu...

Java Interface and Abstract class Interview Questions

›
--------------------------------------- What is Abstract class? What is interface? Difference between Abstract class and inteface? Can...

Difference between SOAP and REST Style Web Service in Java

›
SOAP and REST are two ways to create web services in Java world, here are couple of key differences between REST and SOAP in Java ...

Top 50 Core Java Interview Questions with Answers

›
1)  How Java achieves platform independence? (answer) 2)  What is ClassLoader in Java? (answer) 3)  Write a Java program to check ...

10 points about JPA Entity Class for Hibernate Java developers.

›
JPA Entity class is in core of JPA specification and its one of the most important thing a Java developer should know, while working with J...

XML Interview questions and answers for programmer

›
XML Interview questions and answers for programmer --------------------------------------------------- What is XML ? Difference between ...

XPath Example in Java

›
10 Example of XPATH ------------------------ package test; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; impo...

Top 10 Reasons to do Java Certification like OCPJP and OCAJP

›
1. To Learn Java Better 2. Hiring advantages 3. To do well on Java written test 4. To do well on Java interviews 5. To Earn mo...

Difference between dependency injection and factory pattern?

›
Difference between dependency injection and factory pattern? -------------------------------------------------------------- What is diffe...

Tricky Multithreading and Concurrency Questions from Java Interviews

›
1) Question on volatile variable 2) Can we make an Array volatile in Java? 3) Can you write code for double checked locking in Singleto...

JMSWMQ2020: Failed to connect to queue manager

›
JMSWMQ2020: Failed to connect to queue manager ----------------------------------------------- Cause : reason code 2397 comes when SSL is...

How to round floating point number in Java

›
How to round floating point number in Java -------------------------------------------- Rounding real in full: Just use the method Math...

How to use BigDecimal to add or subtract float and double in Java

›
How to use BigDecimal to add or subtract float and double in Java ------------------------------------------------------------------- How...

J2EE Interview Question and answers for Java programmer

›
J2EE Interview Question and answers for Java programmer ---------------------------------------------------------- What is J2EE or JEE ? ...

Jakarta Struts Interview Questions and Answers in Java

›
Jakarta Struts Interview Questions and Answers in Java ------------------------------------------------------- What is struts ? What is ...

Resources to learn Java programming

›
Resources to learn Java programming ------------------------------------ Now, if you decide to learn Java programming, here are couple of...
‹
›
Home
View web version