Example & Tutorial understanding programming in easy ways.
Home
What are different types of access modifiers?
Read More →
When we can declare a method as abstract method ?
Read More →
Can abstract modifier be applied to a variable?
Read More →
Can we define abstract class (as outer class) and class ( inner class) in java ?If Yes give an example .
Read More →
Why we define constructor in abstract class in java when we can't initialized it abstract class. Or how constructor of abstract class can used. Give an example
Read More →
Can we define abstract class (as inner class) and class ( outer class) in java ?If Yes give an example?
Read More →
Can we create a interface within interface ?If Yes then give an example .How we can call inner interface?
Read More →
Can we declare a enum within interface ?If Yes then give an example .How we can call enum ?
Read More →
How many number of non-public class definitions can a source file have?
Read More →
How many number of public class definitions can a source file have?
Read More →
What happened If we compile and run following code?
Read More →
What happens if parent is not serialized and child class are serialized?
Read More →
What is the difference between procedural and object-oriented programs?
Read More →
What is the difference between Assignment and Initialization?
Read More →
What is OOPS(Object-Oriented Programming) principle?
Read More →
Explain the different forms of Polymorphism.
Read More →
What are Class, Constructor and Primitive data types?
Read More →
What is an Object and how do you allocate memory to it?
Read More →
What is the difference between constructor and method?
Read More →
How many ways can an argument be passed to a subroutine and explain them?
Read More →
What is the difference between an argument and a parameter?
Read More →
What are Access Specifiers available in Java?
Read More →
What is the difference between class variable, member variable and automatic(local) variable
Read More →
When are static and non static variables of the class initialized?
Read More →
What restrictions are placed on method overriding?
Read More →
What restrictions are placed on method overloading?
Read More →
What is the difference between Overloading and Overriding?
Read More →
Can overriding methods have different return types?
Read More →
If you use super() or this() in a constructor where you us it in the constructor?
Read More →
What is difference between ArrayList and vector?
Read More →
What is difference between HashMap and HashTable?
Read More →
What is difference between Arrays and ArrayList ?
Read More →
What is difference between HashMap and HashTable?
Read More →
What is difference between Arrays and ArrayList ?
Read More →
Describe the feature of try-with-resorce feature of jdk 1.7?
Read More →
What is difference between iterator access and index access?
Read More →
If an ArrayList has to be iterate to read data only, what are the possible ways and which is the fastest?
Read More →
What are the classes implementing List interface?
Read More →
if accessing through iterator is slow then why do we need it and when to use it?
Read More →
Can a null element added to a Treeset or HashSet?
Read More →
How to sort list of strings - case insensitive?
Read More →
How to make a List (ArrayList,Vector,LinkedList) read only?
Read More →
How we can sort any class on the behalf of the properties of collection. Like we has a collection of named Employee objects we need shortlist by using Employee ID.
Read More →
Which is faster to iterate LinkedHashSet or LinkedList?
Read More →
Arrange in the order of speed - HashMap,HashTable, Collections.synchronizedMap,concurrentHashmap?
Read More →
What is the use of Dimond operator feature of java7?
Read More →
Collection framework in java interview questions
Read More →
What is the difference between thread and process?
Read More →
What is the difference between start() and run() method of thread class
Read More →
Difference between Runnable and Callable in Java?
Read More →
6. What is multiple inheritance and does java support?
Read More →
Whar is race condition in multi-threading in java?
Read More →
8.What is the difference between abstraction and encapsulation?
Read More →
What happens when an Exception occurs in a thread?
Read More →
10.what is the Advantage of OOPs over Procedure-oriented programming language
Read More →
Why wait, notify and notifyAll are not inside thread class?
Read More →
11.What is final variable and Use of final variable
Read More →
You have thread T1, T2 and T3, how will you ensure that thread T2 run after T1 and thread T3 run after T2?
Read More →
What does yield() method of Thread class do?
Read More →
Difference between submit() and execute() method thread pool in Java?
Read More →
What are the different states of a thread\'s lifecycle?
Read More →
12.What is final class - Using final to prevent inheritance?.
Read More →
14.what is the use of final keyword with Variables?
Read More →
You have thread T1, T2 and T3, how will you ensure that thread T2 run after T1 and thread T3 run after T2?
Read More →
17.Can you create a program without main method ?.
Read More →
what is the 6 usage of this keyword in java?.
Read More →
16.what is Runtime polymorphism or Dynamic Method Dispatch
Read More →
What is a Serial Version UID (serialVersionUID) and why should I use it?
Read More →
How many methods in the Serializable interface?
Read More →
what is the difference between serializable and externalizable interface in java?
Read More →
What is the difference between static and dynamic binding ?
Read More →
What are the advantages or usage of threads?
Read More →
Why Multiple Inheritance is Not Supported in Java?
Read More →
what is transient variables in java with example?
Read More →
What is Serialization and deserialization in java given with example?
Read More →
what are the different approach to make object Serializable? Other than Serialization.
Read More →
What happens if the object to be serialized includes the references to other serializable objects?
Read More →
What is the Difference between volatile and transient keyword in Java?
Read More →
Serialization is NOT save the value of static class attributes. Why static variables are not serialized?
Read More →
what are the the main keyword used in exceptation handling?
Read More →
what are the the main keyword used in exceptation handling?
Read More →
Explain Java Exception Hierarchy followed by Throwable class?
Read More →
What are important methods of Java Exception Class?
Read More →
What is the relationship between a class and an object?
Read More →
What is difference between Checked and Unchecked Exception in Java?
Read More →
What is difference between throw and throws keyword in Java?
Read More →
What are different scenarios causing “Exception in thread main”?
Read More →
What is difference between final, finally and finalize in Java?
Read More →
What are the various types of constructors?
Read More →
What happens when exception is thrown by main method?
Read More →
What is the difference between constructor and method?
Read More →
Can we customize the Serialization process?
Read More →
What changes are compatible and incompatible to the mechanism of java Serialization?
Read More →
What is the difference between Error and Exception?
Read More →
Can we have a try block without catch or finally block?
Read More →
Can we have a try block without catch or finally block?
Read More →
what is the Difference between method Overloading and Overriding?.
Read More →
Can we have multiple catch blocks following a single try block?
Read More →
Is it possible to have finally block without catch block?
Read More →
When a finally block does not get executed?
Read More →
Can we handle more than one exception in a single catch block?
Read More →
What is difference between abstract class and interface?
Read More →
What is difference between ClassNotFoundException and NoClassDefFoundError?
Read More →
What are the possible combination to write try, catch finally block?
Read More →
What are the possible combination to write try, catch finally block?
Read More →
What’s the difference between “Abstract” classes and “Interfaces”?
Read More →
What’s difference between Static and Non-Static fields of a class?
Read More →
What is Bootstrap, Extension and System Class loader?
Read More →
What are the advantages of using exception handling?
Read More →
What’s the difference between static and dynamic class loading?
Read More →
What is String in Java? String is a data type?
Read More →
What are different ways to create String Object in java?
Read More →
what is the Difference Between String , StringBuilder and StringBuffer Classes in java?.
Read More →
Can a thread call multiple synchronized methods on the object of which it hold the lock?
Read More →
How many types of memory areas are allocated by JVM?
Read More →
What are the various access specifiers for Java classes?
Read More →
What is the difference between static binding and dynamic binding in java?
Read More →
Can two threads call two different static synchronized methods of the same class?
Read More →
What are synchronized methods and synchronized statements?
Read More →
When you will synchronize a piece of your code?
Read More →
What is Reflection in Java and where is used?
Read More →
What are the disadvantage of using the reflection API?
Read More →
How can you get the class object from a class name?
Read More →
What are the basic Functionality of Reflection Api in Java?
Read More →
How to access private field using Reflection in Java?
Read More →
How to access private metod using Reflection in Java?
Read More →
what methods supported by String class in java?
Read More →
What is Dynamic Class Loading using java Reflection Api ?
Read More →
What do you understand by Executor Framework in Java, what is java executor framework
Read More →
How to terminate a thread in Executor Framework in java?
Read More →
Write a function to determine whether or not a string is a palindrome?.
Read More →
What is the role of Executors.unconfigurableExecutorService in Executor Framework?
Read More →
What are Difference Between String , StringBuilder and StringBuffer Classes with Example in Java ?
Read More →
What is a wrapper class in java? Explain with examples.
Read More →
What is the role of ExecutorService in Java?
Read More →
What is difference between shutdownNow() and shutdown() in Executor Framework in java?
Read More →
Write a method that will remove given character from the String in java?
Read More →
How do you check if two Strings are equal in Java?
Read More →
What is Executors in java Executor Framework?
Read More →
What is the role of FutureTask and Future in java?
Read More →
What is the role of Executors.privilegedThreadFactory() in Executor Framework?
Read More →
What are differences between JVM,JRE and JDK ?
Read More →
Why Java does not support operator overloading ?
Read More →
How can we make String upper case or lower case in java?.
Read More →
What is the difference between creating string as new and literal in java?
Read More →
Can we define two methods in a class with the same name?
Read More →
What are the different policy in Executor Framework?
Read More →
How to get return value of a callable thread in java Executor Framework?
Read More →
Why String is immutable or final in Java with example?.
Read More →
What is difference between String and new String() in java?
Read More →
What are the new features introduced in jdk 1.7?
Read More →
Can we compare String using == operator? What is risk?
Read More →
What is difference between Compare to and equals method in java?.
Read More →
What is binary literals feature in jdk 1.7?
Read More →
What is collection framework in Java? give its advantage?
Read More →
What are the basic interfaces of Java Collections Framework?
Read More →
What is the benefit of Generics in Collections Framework?
Read More →
What are the Methods of Collection interface in Java?
Read More →
What are difference between Iterator and ListIterator?
Read More →
How we can use underscore in numeric lithrals in java 7?
Read More →
What is the String inside switch feature of java 7?
Read More →
How to use StringBulider method in java give example,and how to create it?.
Read More →
What is the difference between Iterator and Enumeration ?
Read More →
How do you traverse through a collection using its Iterator?
Read More →
What is the difference between Comparable and Comparator Interface?
Read More →
What is difference between HashMap and HashSet?
Read More →
What is difference between fail-fast and fail-safe?
Read More →
what is the NIO.2 feature of java 7 new IO API?
Read More →
what is the purpose of finalize() method in java?
Read More →
Why we use Map interface? What are main classes implementing Map interface?
Read More →
Simple Example of ListIterator Interface in Java .
Read More →
Simple Example of Sorting the elements in Java .
Read More →
Simple Example of LinkedHashMap class in Java .
Read More →
What is FileInputStream and FileOutputStream in java explain?.
Read More →
How many ways can we read data from the keyboard?.
Read More →
How to get list of all files from a folder in java?.
Read More →
How to Filter the files by file extensions and show the file names in java?.
Read More →
How to Filter the files by file extensions and show the file names in java?.
Read More →
How to Filter the files by file extensions and show the file names in java?.
Read More →
How to compress and uncompress the data of a file in java?.
Read More →
How to create and store property file dynamically in java?.
Read More →
How to store and read objects from a file in java?.
Read More →
what is the diffrence b/w io and nio in java?.
Read More →
How to read file content using byte array in java?.
Read More →
How to get file last modified time in java?.
Read More →
How to Write file handling program to copy characters from one file to another in java?.
Read More →
How to count number of characters in a file in java
Read More →