1 | Q | Why threads block or enters to waiting state on I/O? |
A | Threads enters to waiting state or block on I/O because other threads can execute while the I/O operations are performed. | |
2 | Q | What are transient variables in java? |
A | Transient variables are variable that cannot be serialized. | |
3 | Q | How Observer and Observable are used? |
A | Subclass of Observable class maintain a list of observers. Whenever an Observable object is updated, it invokes the update() method of each of its observers to notify the observers that it has a changed state. An observer is any object that implements the interface Observer. | |
4 | Q | What is synchronization |
A | Synchronization is the ability to control the access of multiple threads to shared resources. Synchronization stops multithreading. With synchronization , at a time only one thread will be able to access a shared resource. | |
5 | Q | What is List interface ? |
A | List is an ordered collection of objects. | |
6 | Q | What is a Vector |
A | Vector is a grow able array of objects. | |
7 | Q | What is the difference between yield() and sleep()? |
A | When a object invokes yield() it returns to ready state. But when an object invokes sleep() method enters to not ready state. | |
8 | Q | What are Wrapper Classes ? |
A | They are wrappers to primitive data types. They allow us to access primitives as objects. | |
9 | Q | Can we call finalize() method ? |
A | Yes. Nobody will stop us to call any method , if it is accessible in our class. But a garbage collector cannot call an object's finalize method if that object is reachable. | |
10 | Q | What is the difference between time slicing and preemptive scheduling ? |
A | In preemptive scheduling, highest priority task continues execution till it enters a not running state or a higher priority task comes into existence. In time slicing, the task continues its execution for a predefined period of time and reenters the pool of ready tasks. | |
11 | Q | What is the initial state of a thread when it is created and started? |
A | The thread is in ready state. | |
12 | Q | Can we declare an anonymous class as both extending a class and implementing an interface? |
A | No. An anonymous class can extend a class or implement an interface, but it cannot be declared to do both | |
13 | Q | What are the differences between boolean & operator and & operator |
A | When an expression containing the & operator is evaluated, both operands are evaluated. And the & operator is applied to the operand. When an expression containing && operator is evaluated, the first operand is evaluated. If the first operand returns a value of true then only the second operand is evaluated otherwise the second part will not get executed. && is also called short cut and. | |
14 | Q | What is the use of the finally block? |
A | Finally is the block of code that executes always. The code in finally block will execute even if an exception is occurred. finally will not execute when the user calls System.exit(). | |
15 | Q | What is an abstract method ? |
A | An abstract method is a method that don't have a body. It is declared with modifier abstract. | |
Monday, April 14, 2008
Core Java Interview Questions books
Subscribe to:
Post Comments (Atom)
Archives
-
▼
2008
(201)
-
▼
April
(137)
- Q & A on Teoretical ANalysis of Router Systems
- Q & A on Application Level Gateways,
- Q & A on Ethernet Transceivers and "10BaseT",
- Q & A on 100BaseT and 10BaseT Cabling,
- Q & A on One LAN or Many LANs on a Campus,
- Q & A on ICMP and UDP "ping",
- Q & A on Netweork Analyzer Software,
- Q & A on Writing a Network Analyzer,
- Q & A on Interpreting IP Addresses in Octal,
- Q & A on New Top-Level Domains for DNS,
- Q & A on WAP and TCP.
- Q & A on TCP Segment Lengths.
- Q & A on TCP/IP Between Hosts on a Single Network.
- Q & A on "Internetworking with TCP/IP, Volume 1".
- Q & A on TPC/IP Layering Model,
- Q & A on IP Address Prefixes and Suffixes
- Q & A on "Net 0" IP Addresses.
- Q & A on Network Standard Byte Order and User Data.
- Q & A on Network Topologies,
- Q & A on Code for Internetworking with TCP/IP, Vol...
- Q & A on Attenuation in Ethernet Network Design
- Q & A on Hardware Technologies
- Computer Network Questions and Answers Part 1
- Computer Network Questions and Answers Part 2.
- Computer Network Questions and Answers Part 3.
- Computer Network Questions and Answers Part 4.
- Computer Network Questions and Answers Part 5,
- Computer Network Questions and Answers Part 6.
- Computer Network Questions and Answers Part 7.
- Computer Network Questions and Answers Part 8.
- Computer Network Questions and Answers Part 9,
- networking 146
- Basic Networkin Questions - 2, 142
- Basic Networkin Questions - 1 140
- Networking, Socket Programming, Inter-Process Comm...
- Networking Interview questions 134
- Networking Interview questions 130
- Computer Networking Interview Questions 128
- Networking Interview Questions 126
- JAVA QUESTIONS 125
- JAVA INTERVIEW QUESTIONS 120
- Core Java Test Paper1 116
- Java Interview Questions And Answers 112
- Java Interview Questions And Answers 108
- Advanced enterprise Java interview questions 106
- Advanced JAVA questions 104
- (FAQ) Advanced Java Interview Questions 100
- TrainJava Blog interviews 98
- Java Exceptions Questions 94
- Java technical interview guide - part 1 90
- Advanced Java Interview Questions And Answers 88
- Java J2EE Interview Questions and Answers 84
- Java Architect Interview Questions 82
- Advanced enterprise Java Interview Questions 80
- java script interview questions 78
- importent java interviews and answers
- importent study interview questions in java 74
- java total interview questions 68
- java interviews 66
- importent java interview questions 64
- java importent studying questions
- core java importent interviews 62
- corejava 60
- interviews of corejava 58
- corejava interviews 54
- core java more interviews 52
- core java inerviews 51
- core java interview questions 50
- corejava 50
- Core Java Interview Questions and Answers 48
- Core Java Interview Questions and Answers 46
- 300 Core java interview questions And Answer 44
- Java Interview Questions and Answers 40
- Java Interview Questions and Answers 34
- Java Interview Questions and Answers 32
- Java Interview Questions and Answers 30
- Java Interview Questions and Answers 28
- java interview questions 26
- java importent interview questions 24
- Java and Perl Web programming interview questions 23
- java interview questions 22
- Basic Java interview question 16
- Some Java Job Interview Questions 15
- Java Technical Questions with Answers 14
- Table of Contents:
- Visual Basic Interview Questions 13
- Java Interview Questions... 12
- Advanced enterprise Java Interview Questions
- Advanced Java Programming Interview Questions 10
- java questions 9
- Advanced Java Interview Questions 8
- Java interview questions 7
- JAVA INTERVIEW QUESTIONS (5)
- JAVA INTERVIEW QUESTIONS (4)
- JAVA INTERVIEW QUESTIONS (3)
- JAVA INTERVIEW QUESTIONS (2)
- JAVA INTERVIEW QUESTIONS 1
- Core Java Interview Questions books
- core java importent questions
- 30 simple Java questions
-
▼
April
(137)
No comments:
Post a Comment