Menampilkan postingan dengan label core java interview questionTunjukkan semua

Difference between extends and implements keywords in Java

Though both extends and implements keyword in Java is used to implement Inheritance concept of Object-Oriented programming, there is a s…


Top 10 Java Swing Interview Questions Answers asked in Investment banks

The Swing API and toolkit are heavily used in developing trading application front end in Java on both large Investment banks and small br…


Integer vs floating point arithmetic - Java Coding Question

I am starting a new series called Java Coding Quiz, in which I'll show you subtle Java concepts hidden in the code. This is an OCAJP o…


How to check if ResultSet is empty in JDBC - Java Example

The JDBC ResultSet doesn't provide any isEmpty() , length() or size() method to check if its empty or not. Hence, when a Java program…


Top 21 Java Final Modifier (Keyword) Interview Questions and Answers

The final modifier is one of the important keywords in Java. You can use this with a class, method, and variable as well. A good knowledge …


Why Timestamp cannot be used in place of Date in Java?

One of the tricky question from Java Interview is, "Can we pass a Timestamp instance to a method expecting java.util.Date? " , it…


Java Object Oriented Analysis and Design Problem - Vending Machine Part 2

This is the second part of Java tutorial to show how to create Vending Machine in Java. In the first part , we have discussed problem state…


Design a Vending Machine in Java - Interview Question

How do you design a Vending Machine in Java? is one of the good Java interview questions mostly asked at Senior level Java developer Inter…


What is difference between Synchronized and Concurrent Collections in Java?

Synchronized vs Concurrent Collections Though both Synchronized and Concurrent Collection classes provide thread-safety, the differences be…


Difference between notify and notifyAll in Java - When and How to use

notify vs notifyAll in Java What is the difference between notify and notifyAll method is one of th e tricky Java questions , w hich is ea…


Difference between ExecutorService.submit() and Executor.execute() methods in Java?

What is the difference between Executor.submit() and Executor.execute() method in Java? is one of the good multi-threading questions for…


Top 10 Servlet Interview Question Answers - J2EE

This time its servlet interview questions, I was thinking what to pick for my interview series and then I thought about J2EE and Servlet is…


Difference between Stack and Heap memory in Java

The difference between stack and heap memory is c ommo n programming question a sked by beginners learning Java or any other programming l…


How to Convert and Print Byte array to Hex String in Java

We often need to convert byte arrays to Hex String in Java, In order to print byte array contents in a readable format. Since many cryptogr…


How to check if two String are Anagram in Java - Program Example

Write a Java program to check if two String are anagram of each other, is another good coding question asked at fresher level Java Intervie…


Can You Overload or Override Static methods in Java

Can static method be overridden in Java, or can you override and overload static method in Java , is a common Java interview question, most…


Top 15 Data Structures and Algorithm Interview Questions for Java programmer - Answers

Data structures and algorithm questions are an important part of any programming job interview, be it a Java interview, C++ interview or an…


Difference between Struts 1 and Struts 2 framework

I had work previously on Struts 1 but never touched Struts 2, specially since Spring MVC was there to take the leading role. Recently one o…


Bitwise and BitShift Operators in Java - AND, OR, XOR, Signed Left and Right shift Operator Examples

Bitwise and Bit Shift operators in Java are powerful set of operators which allows you to manipulate bits on integral types like int, long,…


Difference between Singleton Pattern vs Static Class in Java

Singleton pattern vs Static Class (a class, having all static methods) is another interesting questions, which I missed while blogging ab…