Hello Guest !
Login
Home
Job Seeker's Login
Employer's Zone
Placement Paper
Online Test
Resume writing
Online Tutorial
Groups
Jobseeker Login
Search Jobs
My Saved Jobs
Test Menu
Quizzes Home Page
Test Category
Aptitude Test
Asp.Net
Brain-Quiz
C - Language
C++
Computer Science
Electrical Engineering
English grammar
General Knowledge
HR Policy
HTML
IQ Test
Java
MS Office
Networking Basics
PHP
RDBMS Test
Search Engine Optimization
Software Testing
VB.NET
Web Design
Java Questions
You got
To finish
1.
When a thread terminates its processing, into what state that thread enters?
Running state
Waiting state
Dead state
Beginning state
2.
How can you prevent a member variable from becoming serialized?
By marking it private
By marking it volatile
By marking it transient
You can not.
3.
What is the size of a Char?
4 bits
7 bits
8 bits
16 bits
4.
Which of these statements is true?
LinkedList extends List
AbstractSet extends Set
HashSet extends AbstractSet
WeakHashMap extends HashMap
5.
Following code will result in: class A { int b = 1; public static void main(String [] args) { System.out.println("b is " + b); }}
Compilation error
Runtime Error
Runtime Exception
Output of b is 1
6.
Which of the following is not a return type?
boolean
void
public
Button
7.
Which of the following is considered as a blue print that defines the variables and methods common to all of its objects of a specific kind?
Object
Class
Method
Real data types
8.
The code snippet if( "Welcome".trim() == "Welcome".trim() ) System.out.println("Equal"); else System.out.println("Not Equal");
compile and display “Equal”
compile and display “Not Equal”
cause a compiler error
compile and display NULL
9.
Which of the following statements declare class Sample to belong to the payroll.admindept package?
package payroll.admindept;
import payroll.*;
package payroll.admindept.Sample;
import payroll.admindept.*;
10.
Which of the following statements is true?
A super class is a sub set of a sub class
class ClassTwo extends ClassOne means ClassOne is a subclass
Class ClassTwo extends ClassOne means ClassTow is a super class
The class Class is the super class of all other classes in Java.
11.
Which of the following is not a method of the Thread class.
public void run()
public void start()
public void exit()
public final int getPriority()
12.
All the wrapper classes (Integer, Boolean, Float, Short, Long, Double and Character) in java
are private
are serializable
are immutatable
are final
13.
What are the two parts of a value of type double?
Significant Digits, Exponent
Length, Denominator
Mode, Numerator
None of the above
14.
DataInputStream is an example of
Output stream
I/O stream
Filtered stream
File stream
15.
A class cannot be declared:
Static
Private
Default
None of the above
16.
What kind of thread is the Garbage collector thread is?
Non daemon thread
Daemon thread
Thread with dead state
None of the above
17.
Which of the following is synchronized?
Set
LinkedList
Vector
WeakHashMap
18.
The object of DataInputStream is used to
To covert binary stream into character stream
To covert character stream into binary stream
To write data onto output object
All of the above
19.
Consider the following code snippet. What will be assigned to the variable fourthChar, if the code is executed? String str = new String(“Java”); char fourthChar = str.charAt(4);
‘a’
‘v’
throws StringIndexOutofBoundsException
null characate
20.
Following code will result in: int a = 9/0;
Compilation error: Divisions must be in a try block.
Compilation error: DivideByZeroException
Runtime Exception
No Error: a is NaN
There are 20 questions.
Top Rankers
Rama Nand
100%
Java
Raju
100%
Java
Swagata Chatterjee
100%
Java
PREETI PRIYA
100%
Java
Divya
100%
Java
About Us
|
Tell to Friend
|
Terms of Use
|
Contact Us
|
Privacy Policy
|
RSS
Copyright © 2013
InetFresherJobs
. All Rights Reserved.