Java Programming Test - Online Java Tests for interview preparation

This online Java programming test consists of questions to check your fundamental and advanced technical knowledge in Java programming. A competitive test to prepare for written tests, cetification test and job interviews. Take this set of 39 objective Java programming questions with some sample questions and assess your current status of preparation.

Online Practice Test > Java programming test

Click here to start Java Programming Test test
Here are few sample Java Programming Test questions

Which of the following statements is false about objects?   

Options
An instance of a class is an object 
Objects can access both static and instance data 
Object is the super class of all other classes 
Objects do not permit encapsulation   

Assume that the value 3929.92 is of type ‘float’. How to assign this value after declaring the variable ‘interest’ of type float?    

Options
interest = 3929.92 
interest = (Float)3929.92  
interest = 3929.92 (float)
interest = 3929.92f

Which of the following statements is true?

Options
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.

Click here to start Java Programming Test test 

More Links
Java class

Explain the features of Java class. Explain Fields, Methods, and Access Levels.
What are accessors and mutator methods in a Java class? Explain with example for each.
Explain the importance of 'this' reference. Write a code to depicts the use of 'this' reference
Explain static variables and static methods in Java. Provide an example to explain them..................
Read answer

Java constructors

What is a constructor? Explain the differences between methods and constructor.
Differences between constructors and methods.
Write code to depict the use of constructor..................... 



Write your comment - Share Knowledge and Experience

Discussion Board
Java Programming Test - Online Java Tests for interview preparation

Block of code, which is always executed (except System.exit(0) call) no matter what program flow, occurs when dealing with an exception. Choose the correct option

throw
try
finally
throws


Java Programming Test 05-10-2012 06:12 AM

Java Programming Test - Online Java Tests for interview preparation

What is the difference between throw and throws?

The throws key word is used to explicitly throw an exception, while throw is utilized to handle checked exceptions
The throw key word is used to implicitly throw an exception, while throws is utilized to handle checked exceptions
The throws key word is used to implicitly throw an exception, while throw is utilized to handle checked exceptions
The throw key word is used to explicitly throw an exception, while throws is utilized to handle checked exceptions


Java Programming Test 05-10-2012 06:12 AM

Java Programming Test - Online Java Tests for interview preparation

Which of the following below is FALSE for abstract class?

An abstract class can have only abstract methods
An abstract class can have both abstract and concrete methods
An abstract class is to be extended by another class
A class can extend only one abstract class


Java Programming Test 05-10-2012 06:12 AM

Java Programming Test - Online Java Tests for interview preparation

Choose the correct option for Serialization.

Serialization is a process of reading or writing an object.
It is a process of saving an object’s state to a sequence of bytes, as well as a process of rebuilding those bytes back into a live object at some future time
A common use of serialization is to use it to send an object over the network
All of the above are true for Serialization


Java Programming Test 05-10-2012 06:11 AM

 


Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring