Type Here to Get Search Results !

CORE JAVA IMPORTANT QUESTIONS - Part 9

0

 CORE JAVA IMPORTANT QUESTIONS 

Part 9


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. What is the purpose of the System class?

The purpose of the System class is to provide access to system resources.

Q2. Which TextComponent method is used to set a TextComponent to the read-only state?

setEditable()

Q3. How are the elements of a CardLayout organized?

The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.


Q4. Is &&= a valid Java operator?

No, it is not.

Q5. Name the eight primitive Java types?

The eight primitive types are byte, char, short, int, long, float, double, and boolean. 

Q6. Which class should you use to obtain design information about an object?

The Class class is used to obtain information about an object's design.


Q7. What is the relationship between clipping and repainting?

When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.

Q8. Is "abc" a primitive value?

The String literal "abc" is not a primitive value. It is a String object.

Q9. What is the relationship between an event-listener interface and an event-adapter class?

An event-listener  interface defines the methods that must be implemented by an event  handler for a particular kind of event. An event adapter provides a default implementation of an event-listener interface.


Q10. What restrictions are placed on the values of each case of a switch statement? 

During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value.

Q11. What modifiers may be used with an interface declaration?

An interface may be declared as public or abstract.

Q12. Is a class a subclass of itself?

A class is a subclass of itself.


Q13. What is the highest-level event class of the eventdelegation model?

The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy.

Q14. What event results from the clicking of a button?

The ActionEvent event is generated as the result of the clicking of a button.

Q15. How can a GUI component handle its own events?

A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.



Post a Comment

0 Comments

Top Post Ad

Below Post Ad