Category: Core Java

Generic Class

Generic Class  A class that specify to any type is known as generic class. So to create the generic class of specific type. Now, we are using T type parameter. By simple example we can create and use the generic class. Creating...

Read More

JDBC

Q. What is the JDBC API? A. The JDBC API provides a standard database-independent interface to interact with any tabular data source. Mostly, it is used to interact with a relational database management system (RDBMs). However,...

Read More

Generics

 What are Generics? A class, an interface or a method that act or operates on a parameterized type is called generics. Here the term generics indicate to a parameterized types. In other words, a class or an interface whose...

Read More

Exceptional Handling

 What is an exception? An abnormal condition that arises in a code sequence at run time is called an exception. During the execution of a program an exception event occurs that disturbs the  program flow. An object of an...

Read More

Threading

Name  the method that is used to start a thread execution ? start(). What are the two types of multitasking ? The two types of multitasking are: 1. Process-based. 2. Thread-based. In how many ways a Thread can be created ? A...

Read More

String Handling

 What is String in java ? A sequence of characters is called as String. But in case of  java, string is an object which represents a sequence of characters. String class is used for creation of string object. How to create...

Read More

Collections

What are the various ways to iterate over a list ? To iterate over a list in two different ways : 1. Using iterator. 2. Using for-each loop. Is Listiterator inherits from Iterator interface ? Yes, ListIterator inherits from...

Read More

Core Java Basics Part 2

Define the marker interface in java ? Interfaces with no methods are known as marker interfaces for example: Clonable, Serializable, Event listener, SingleThreadModel. These interfaces are implemented by the classes or their...

Read More

Core Java Basics

What is the most important feature that makes Java different to other language? Platform independent feature makes Java different to other language. What is  platform independence means ? It means that we can write and compile...

Read More
Loading