Type Here to Get Search Results !

CORE JAVA IMPORTANT QUESTIONS - Part 3

0

 CORE JAVA IMPORTANT QUESTIONS

Part - 3


Java is one of the most popular programming language. There is a growing demand for Java Developer jobs in technology companies.

This article contains technical most important core java questions that an interviewer asks for Java technology and related topics. Each question is accompanied with an answer so that you can prepare for job interview and clear your concepts in short time.

we have covered almost 500+ important core Java interview questions for freshers and experienced candidates. This post on CORE JAVA Important Questions is prepared to help you understand the basic concepts of Java programming for interview purposes. All the important JAVA concepts are explained here with examples for your easy understanding.This tutorial covers JAVA topics like basic Java definitions, OOP concepts, Access specifiers, Collections, Exceptions, Threads, Serialization, etc., with examples to make you get ready perfectly to face any JAVA interview confidently.

All the best !


Q1. Which containers use a FlowLayout as their default layout?

The Panel and Applet classes use the FlowLayout as their default layout.

Q2. What state does a thread enter when it terminates its processing?

When a thread terminates its processing, it enters the dead state.

Q3. What is the Collections API?

The Collections API is a set of classes and interfaces that support operations on collections of objects.

Q4. Which characters may be used as the second character  of an identifier, but not as the first character of an identifier?

The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.

Q5. What is the List interface?

The List interface provides support for ordered collections of objects.

Q6. How does Java handle integer overflows and underflows?

It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.

Q7. What is the Vector class?

The Vector class provides the capability to implement a growable array of objects

Q8. What modifiers may be used with an inner class that is a member of an outer class?

A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.

Q9. What is an Iterator interface?

The Iterator interface is used to step through the elements of a Collection.

Q10. What is the difference between the >> and >>> operators?

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out

Q11. Which method of the Component class is used to set the position and size of a component?

setBounds()

Q12. How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?

Unicode requires 16 bits and  ASCII require 7 bits. Although the ASCII character set uses   only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bit and larger bit patterns.


Q13. What is the difference between yielding and sleeping?

When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.

Q14. Which java.util classes and interfaces support event handling?

The EventObject class and the EventListener interface support event processing.

Q15. Is sizeof a keyword?

The sizeof operator is not a keyword. sizeof operator is not available in Java. But, at times you may want to know size of your Java objects. Size of an object depends on VM implementation. Number of header words in an object ( "class pointer" etc.), pointer size (32/64 bit) and alignment variations make object size dependent on VM implementation.


Post a Comment

0 Comments

Top Post Ad

Below Post Ad