Right Place For Right PersonTM  R4RTM
Sponsored Ads
Contact US      !!       Submit Your Questions     !!       Total Hits:      !!       English Pronunciation Lessons      !!       SCJP1.5 with Example
Buy This Website(This website is for Sale)
Home Tutorials Articles Forums Source Code Books Certifications Interviews Questions

Q1.Which of the following are compiling without warning or error?
a) float f=1.3;
b) char c="a";
c) byte b=257;
d) boolean b=null;
e) int i=10;

Q2.Which of the following are legal statements?
a) float f=1/3;
b) int i=1/3;
c) float f=1.01;
d) double d=999d;.

Q3.Which of the following are Java keywords?
a) NULL.
b) new.
c) instanceOf.
d) wend.

Q4.Which of the following are valid statements?
a) System.out.println(5+4);
b) int i=2+'3';
c) String s="one"+'Two';
d) byte b=255;

Q 5.Which of the following statements are true?
a) The garbage collection algorithm in Java is vendor implemented.
b) The size of primitives is platform dependent.
c) The default type for a numerical literal with decimal component is a float.
d) You can modify the value in an Instance of the Integer class with the setValue method.

Q6.Which of the following are true statements?
a) The creation of a named instance of the File class creates a matching file in the underlying operating system only when the close method is called.
b) The RandomAccessFile class allows you to move directly to any point a file.
c). I/O in Java can only be performed using the Listener classes.
d) The characteristics of an instance of the File class such as the directory separator, depend on the current underlying operating system.

Q 7.Which of the following statements are true?
a) The instanceof operator can be used to determine if a reference is an instance of a class, but not an interface.
b) The instanceof operator can be used to determine if a reference is an instance of a particular primitive wrapper class.
c) The instanceof operator will only determine if a reference is an instance of a class immediately above in the hierarchy but no further up the inheritance chain.
d) The instanceof operator can be used to determine if one reference is of the same class as another reference thus.

Q8.Which of the following statements are true?
a) An interface can only contain method and not variables.
b) Interfaces cannot have constructors.
c) A class may extend only one other class and implement only one interface.
d) Interfaces are the Java approach to addressing its lack of multiple inheritance, but require implementing classes to create the functionality of the Interfaces.

Q9.Which of the following are valid statements?
a) public class MyCalc extends Math
b) Math.max(5);
c) Math.round(9.99,1);
d)Math.mod(4,10);

Q10.Which of the following are methods of the Runnable interface?
a) run
b) start
c) yield
d) stop

Q11.Which of the following statements are true?
a) A byte can represent between -128 to 127.
b) A byte can represent between -127 to 128.
c) A byte can represent between -256 to 256.
d) A char can represent between -2x2 pow 16 2 x2 pow 16 - 1.

Q12.What will happen when you attempt to compile and run the following code?
class Base{
public void Base(){
System.out.println("Base");
}
}
public class Inner extends Base{
public static void main(String argv[]){
Inner i=new Inner();
}
}
a) Compile time error Base is a keyword.
b) Compilation and no output at runtime.
c) Output of Base.
d) Runtime error Base has no valid constructor.

Q13.You have a public class called myclass with the main method defined as follows
public static void main(String parm[]) {
System.out.println(parm[0]);
}
If you attempt to compile the class and run the program as follows
“java myclass hello”
What will happen?
a) Compile time error, main is not correctly defined.
b) Run time error, main is not correctly defined.
c) Compilation and output of java.
d) Compilation and output of hello.

Q14.Which of the following statements are true?
a) If a class has any abstract methods it must be declared abstract itself.
b) All methods in an abstract class must be declared as abstract.
c) When applied to a class, the final modifier means it cannot be sub-classed.
d) transient and volatile are Java modifiers.

Q15.Which of the following are valid methods?
a) public static native void amethod(){}
b) public static void amethod(){}
c) private protected void amethod(){}
d) static native void amethod();

Q16.Which of the following statements are true?
a) Constructors cannot have a visibility modifier.
b) Constructors can be marked public and protected, but not private.
c) Constructors can only have a primitive return type.
d) Constructors are not inherited.

Q17.What will happen when you attempt to compile and run the following class?
class Base{
Base(int i){
System.out.println("Base");
}
}
class Inner extends Base{
public static void main(String argv[]){
Inner s = new Inner();
}
void Inner (){
System.out.println("Inner");
}
}
a) Compilation and output of the string “Inner “at runtime.
b) Compile time error.
c) Compilation and no output at runtime.
d) Compilation and output of the string "Base".

Q18.Which of the following statements are true?
a) A static methods do not have access to the implicit variable called this.
b) A static method may be called without creating an instance of its class.
c) A static method may not be overridden to be non-static.
d) A static method may not be overloaded.

Q19.Which of the following will compile without error?
a)char c='1';
System.out.println(c>>1);
b)Integer i=Integer("1");
System.out.println(i>>1);
c)int i=1;
System.out.println(i<<<1);
d)int i=1;
System.out.println(i<<1);

Q 20.Which of the following are Java keywords?
a) sizeof
b) main
c) transient
d) volatile

Q21.Which of the following statements are true?
a) The default constructor has a return type of void.
b) The default constructor takes a parameter of void.
c) The default constructor takes no parameters.
d) The default constructor is not created if the class has any constructors of its own.

Q22.Which of the following statements are true?
a) All of the variables in an interface are implicitly static.
b) All of the variables in an interface are implicitly final.
c) All of the methods in an interface are implicitly abstract.
d) A method in an interface can access class level variables.

Q 23.Which of the following statements are true?
a) The String class is implemented as a char array, elements are addressed using the stringname[] convention.
b) The + operator is overloaded for concatenation for the String class.
c) Strings are a primitive type in Java and the StringBuffer is used as the matching wrapper type.
d) The size of a string can be retrieved using the length property.

Q 24.Which of the following statements are true?
a) A method in an interface must not have a body.
b) A class may extend one other class plus at most one interface.
c) A class may extends at most one other class plus implement many interfaces.
d) An class accesses an interface via the keyword uses.

Q 25.Which of the following statements are true?
a) The following statement will produce a result of 1.
System.out.println( -1 >>>2);
b) Performing an unsigned left shift (<<<) on a negative number will always produce a negative number result.
c) The following statement will produce a result of zero,
System.out.println(1 >>1);
d) All the Java integral types are signed numbers

Contact Us

New Topics

HR ebooks,HR example, HR interview questions ,HR interview answers,HR interview questions and answers

C ebooks,C example, C interview questions ,C interview answers,C interview questions and answers Linux ebooks,Linux example, Linux interview questions ,Linux interview answers,Linux interview questions and answers

Unix ebooks,Unix example, Unix interview questions ,Uinux interview answers,Uinux interview questions and answers

C++ ebooks,C++ example, C++ interview questions ,C++ interview answers,C++ interview questions and answers

XHTML ebooks,XHTML example, XHTML interview questions ,XHTML interview answers,XHTML interview questions and answers

HTML DOM ebooks,HTML DOM example, HTML DOM interview questions ,HTML DOM interview answers,HTML DOM interview questions and answers

RSS ebooks,RSS example, RSS interview questions ,RSS interview answers,RSS interview questions and answers

RDF ebooks,RDF example, RDF interview questions ,RDF interview answers,RDF interview questions and answers

XPATH ebooks,XPATH example, XPATH interview questions ,XPATH interview answers,XPATH interview questions and answers

XLXP ebooks,XLXP example, XLXP interview questions ,XLXP interview answers,XLXP interview questions and answers

WSDL ebooks,WSDL example, WSDL interview questions ,WSDL interview answers,WSDL interview questions and answers

E4X ebooks,E4X example, E4X interview questions ,E4X interview answers,E4X interview questions and answers

XFORMS ebooks,XFORMS example, XFORMS interview questions ,XFORMS interview answers,XFORMS interview questions and answers

SOAP ebooks,SOAP example, SOAP interview questions ,SOAP interview answers,SOAP interview questions and answers

DTD ebooks,DTD example, DTD interview questions ,DTD interview answers,DTD interview questions and answers

XML SCHEMA ebooks,XML SCHEMA example, XML SCHEMA interview questions ,XML SCHEMA interview answers,XML SCHEMA interview questions and answers

XQuery ebooks,XQuery example, XQuery interview questions ,XQuery interview answers,XQuery interview questions and answers

DHTML ebooks,DHTML example, DHTML interview questions ,DHTML interview answers,DHTML interview questions and answers

HTML ebooks,HTML example, HTML interview questions ,HTML interview answers,HTML interview questions and answers

CSS ebooks,CSS example, CSS interview questions ,CSS interview answers,CSS interview questions and answers

XML ebooks,XML example, XML interview questions ,XML interview answers,XML interview questions and answers

XSLT ebooks,XSLT example, XSLT interview questions ,XSLT interview answers,XSLT interview questions and answers

WML ebooks,WML example, WML interview questions ,WML interview answers,WML interview questions and answers

VBScript ebooks,VBScript example, VBScript interview questions ,VBScript interview answers,VBScript interview questions and answers

WMLScript ebooks,WMLScript example, WMLScript interview questions ,WMLScript interview answers,WMLScript interview questions and answers

Ant ebooks,Ant example, Ant interview questions ,Ant interview answers,Ant interview questions and answers

Struts ebooks,Struts Tutorial,Struts example, Struts interview questions ,Struts interview answers,Struts interview questions and answers

Spring ebooks,Spring Tutorial,Spring example, Spring interview questions ,Spring interview answers,Spring interview questions and answers

Hibernate ebooks,Struts Hibernate,Hibernate example, Hibernate interview questions ,Hibernate interview answers,Hibernate interview questions and answers

EJB ebooks,EJB Tutorial,EJB example, EJB interview questions ,EJB interview answers,EJB interview questions and answers

Core Java ebooks,Core Java Tutorial,Core Java example, Core Java interview questions ,Core Java interview answers,Core Java interview questions and answers

Advance Java ebooks,Advance Java Tutorial,Advance Java example, Advance Java interview questions ,Advance Java interview answers,Advance Java interview questions and answers

JDBC ebooks,JDBC Tutorial,JDBC example, JDBC interview questions ,JDBC interview answers,JDBC interview questions and answers

JSP ebooks,JSP Tutorial,JSP example, JSP interview questions ,JSP interview answers,JSP interview questions and answers

Servlet ebooks,Servlet Tutorial,Servlet example, Servlet interview questions ,Servlet interview answers,Servlet interview questions and answers

VC++ ebooks,VC++ example, VC++ interview questions ,VC++ interview answers,VC++ interview questions and answers

SQL ebooks,SQL example, SQL interview questions ,SQL interview answers,SQL interview questions and answers

C# ebooks,C# example, C# interview questions ,C# interview answers,C# interview questions and answers

VB ebooks,VB example, VB interview questions ,VB interview answers,VB interview questions and answers

ASP ebooks,ASP example, ASP interview questions ,ASP interview answers,ASP interview questions and answers

ASP.net ebooks,ASP.net example, ASP.net interview questions ,ASP.net interview answers,ASP.net interview questions and answers

PHP ebooks,PHP example, PHP interview questions ,PHP interview answers,PHP interview questions and answers

JavaScript ebooks,JavaScript example, JavaScript interview questions ,JavaScript interview answers,JavaScript interview questions and answers

Ajax ebooks,Ajax example, Ajax interview questions ,Ajax interview answers,Ajax interview questions and answers

Testing ebooks,Testing example, Testing interview questions ,Testing interview answers,Testing interview questions and answers


Sponsored Ads(Typroo)

Sponsored Ads(Komli)

Sponsored Ads(Typroo)

Sponsored Ads(Komli)

Sponsored Ads(Typroo)

Sponsored Ads(Komli)
Interview Questions And Answers

Linux Objective Questions And Answers

Linux Subjective Questions And Answers

Unix Subjective Questions And Answers

Unix Interview Questions And Answers

HR interview questions and answers

HR Interview Questions Tips

HR Objective Questions And Answers

HR Subjective Questions And Answers

HR Interview Questions And Answers

Learn C Language with in a day

 C /C++ Questions

C Objective Questions And Answers

C Subjective Questions And Answers

C Interview Questions And Answers

C Objective Interview Questions And Answers(10)

C Subjective Interview Questions And Answers(100) 

C syntax, semantics and simple programming questions(61)    

Linux Interview Questions And Answers

Unix Objective Questions And Answers

C Aptitude Questions(179)    

C++ Interview Questions And Answers    

C++ Objective Questions And Answers

C++ Subjective Questions And Answers

C++ Interview Questions And Answers

XHTML Objective Questions And Answers

XHTML Subjective Questions And Answers

XHTML Interview Questions And Answers

HTML DOM Objective Questions And Answers

HTML DOM Subjective Questions And Answers

HTML DOM Interview Questions And Answers

RSS Objective Questions And Answers

RSS Subjective Questions And Answers

RSS Interview Questions And Answers

RDF Objective Questions And Answers

RDF Subjective Questions And Answers

RDF Interview Questions And Answers

XPATH Objective Questions And Answers

XPATH Subjective Questions And Answers

XPATH Interview Questions And Answers

XLXP Objective Questions And Answers

XLXP Subjective Questions And Answers

XLXP Interview Questions And Answers

WSDL Objective Questions And Answers

WSDL Subjective Questions And Answers

WSDL Interview Questions And Answers

E4X Objective Questions And Answers

E4X Subjective Questions And Answers

E4X Interview Questions And Answers

XFORMS Objective Questions And Answers

XFORMS Subjective Questions And Answers

XFORMS Interview Questions And Answers

SOAP Objective Questions And Answers

SOAP Subjective Questions And Answers

SOAP Interview Questions And Answers

DTD Objective Questions And Answers

DTD Subjective Questions And Answers

DTD Interview Questions And Answers

XML SCHEMA Objective Questions And Answers

XML SCHEMA Subjective Questions And Answers

XML SCHEMA Interview Questions And Answers

Core Java Subjective ,Objective and Interview Questions And Answers

275 Core java interview questions

Java Objective Questions and Answer

Java Architect Interview Questions

Applet Interview Questions and Answers

Core Java example

Testing Objective Questions And Answers

Testing Subjective Questions And Answers

Testing Interview Questions And Answers

Ajax Tutorials

Ajax Objective Questions And Answers

Ajax Subjective Questions And Answers

Ajax Interview Questions And Answers

Javascript

 Interview Question and Answer(1-10).

 Interview Question and Answer(11-20).

Interview Question and Answer(21-30).

Interview Question and Answer(31-40).

Javascript Objective Questions And Answers

Javascript Subjective Questions And Answers

Javascript Interview Questions And Answers

PHP Objective Questions And Answers

PHP Subjective Questions And Answers

PHP Interview Questions And Answers 1

ASP.net Objective Questions And Answers

ASP.net Subjective Questions And Answers

ASP.net Interview Questions And Answers 1

ASP.net interview questions ,ASP.net interview answers,ASP.net interview questions and answers

PHP interview questions ,PHP interview answers,PHP interview questions and answers

Core Java Interview Questions and Answers (Subjective)

Core Java Interview Questions and Answers( Objective)

50 Servlet interview questions

155 Java Interview Questions

EJB Interview Questions and Answers(Subjective)

R4R,JSP Interview Questions and Answer(Subjective)

R4R,Java Servlets Interview Questions and Answers(Subjective)

Struts interview questions and answers(Subjective)

C,C++ objective Interview Questions and answers

C Interview Questions And Answers( Objective and Subjective)

C Objective Interview Questions And Answers(10)

C Subjective Interview Questions And Answers(100)

C,C++ Interview Questions

35 C++ Interview Questions And Answers(Subjective)

109 C++ Interview Questions

MFC Interview Questions And Answers(Subjective)

MFC Interview Questions And Answers(Subjective)

ATL Interview Questions And Answers(Subjective)

COM DCOM Interview Questions And Answers(Subjective)

Win32API Interview Questions And Answers(Subjective)

ActiveX Interview Questions And Answers(Subjective)

R4R, VC++ AllOther Interview Questions And Answers(Subjective)

PL/SQL Interview Questions And Answers(Subjective)

152 PL/SQL Interview Questions And Answers(Subjective)

Asp Objective Questions And Answers

Asp Subjective Questions And Answers

Asp Interview Questions And Answers 1

VB Objective Questions And Answers

VB Subjective Questions And Answers

VB Interview Questions And Answers 1

C# Interview Questions and Answers

C# Objective Questions And Answers

C# Subjective Questions And Answers

C# Interview Questions And Answers 1

SQL Interview Questions And Answers

Oracle interview Questions(300).

SQL Objective Questions And Answers

SQL Subjective Questions And Answers

SQL Interview Questions And Answers 1

SUB Query Objective Questions And Answers

MFC Interview Questions

ATL Interview Questions

COM DCOM Interview Questions

Win32API Interview Questions

 ActiveX Interview Questions

VC++ AllOther Interview Question

500 Java Objective Questions and Answer

Core Java Objective Questions And Answers

Core Java Subjective Questions And Answers

Core Java Interview Questions And Answers

Servlet Objective Questions And Answers

Servlet Subjective Questions And Answers

Servlet Interview Questions And Answers

JSP Objective Questions And Answers

JSP Subjective Questions And Answers

JSP Interview Questions And Answers

JDBC Objective Questions And Answers

JDBC Subjective Questions And Answers

JDBC Interview Questions And Answers

JDBC Interview questions and answers

Networking Interview questions and answers

Servlets Interview questions and answers

EJB Objective Questions And Answers

EJB Subjective Questions And Answers

EJB Interview Questions And Answers

Hibernate Objective Questions And Answers

Hibernate Subjective Questions And Answers

Hibernate Interview Questions And Answers

Spring Objective Questions And Answers

Spring Subjective Questions And Answers

Spring Interview Questions And Answers

Struts Objective Questions And Answers

Struts Subjective Questions And Answers

Struts Interview Questions And Answers

Ant Objective Questions And Answers

Ant Subjective Questions And Answers

Ant Interview Questions And Answers

WMLScript Objective Questions And Answers

WMLScript Subjective Questions And Answers

WMLScript Interview Questions And Answers

VBScript Objective Questions And Answers

VBScript Subjective Questions And Answers

VBScript Interview Questions And Answers

WML Objective Questions And Answers

WML Subjective Questions And Answers

WML Interview Questions And Answers

XSLT Objective Questions And Answers

XSLT Subjective Questions And Answers

XSLT Interview Questions And Answers

XML Objective Questions And Answers

XML Subjective Questions And Answers

XML Interview Questions And Answers

CSS Objective Questions And Answers

CSS Subjective Questions And Answers

CSS Interview Questions And Answers

HTML Objective Questions And Answers

HTML Subjective Questions And Answers

HTML Interview Questions And Answers

DHTML Objective Questions And Answers

DHTML Subjective Questions And Answers

DHTML Interview Questions And Answers

XQuery Objective Questions And Answers

XQuery Subjective Questions And Answers

XQuery Interview Questions And Answers

Projects Lists
*You just download and you can use these code.

 

1.Loan System(Java/JSP/JDBC) Click For Download

2.Interanet Mailing System(Java/JSP /JDBC) Click  For Download

3.Student Information System

4.Online Test(Java/Swing)

5.Downloading a Web Page and Displaying its Contents

6.WebBrowser

7.MailClient

C/C++ Projects

1.Banking System (C/C++ Is Used To Create GUI(MENU) and To Maintain The Database)

2.Hotel Management System(GUI+Database Management)

3.STUDENT INFORMATION DATABASE MAINTAINS SYSTEM(GUI+Database Management)

4.Student course schedule

5.Phone Book

6.Library Management System

7.Enabling and disabling the keyboard

8.ChessGame

HTML/DTML Static Projects

1.Complete Website

Contact US:

Your Name:


Your Email:

Message:

Comments:

Give Your Comments:


Advertiser PRIVACY POLICY ||User PRIVACY POLICY || R4R Group Srvices