Right Place For Right PersonTM 
Sponsored Ads
Buy This Website(This website is for Sale)
Home Tutorials Articles Forums Source Code Books Certifications Interviews Questions

Go: 1 2 3

R4R --->Java --->> SCJP1.5 Chapter03 --> Sun Java Certification

Page 1

Question:
Arithmetic Operators
Post Your View

Answers
We know that the bassic operators : > + addition > – subtraction > × multiplication > / division class MathTest { public static void main (String [] args) { int x = 5 * 3; int y = x - 4; System.out.println("x - 4 is " + y); // Prints 11 } } one operator we might be n  More --- >>

By:UMANG
Date:27.02.09

Question:
Assigning a Literal That Is Too Large for the Variable
Post Your View

Answers
If we trying to assign a literal values then we know that the compilers should that time too big to fit into the variable. byte a = 128; // byte can only hold up to 127 The preceding code gives us this error: TestBytes.java:5: possible loss of precision found : int required: byte byte a = 1  More --- >>

By:UMANG
Date:26.02.09

Question:
Assigning Floating-Point Numbers
Post Your View

Answers
Floating-point numbers slightly diff assignment behavior than integer types.We know that the every floating-point literal is implicitly a double (64 bits), not a float. If we try to assign a double to a float, the compiler knows we don’t have enough room in a 32-bit float container to hold the preci  More --- >>

By:UMANG
Date:26.02.09

Question:
Assigning One Primitive Variable to Another Primitive Variable
Post Your View

Answers
When we assign one primitive to another the contents of the right-hand variable are copied, for example, int a = 6; int b = a; We used the variable a only to copy its contents. At this point, a and b have identical contents (in other words, identical values), but if we change the co  More --- >>

By:UMANG
Date:26.02.09

Question:
Assigning One Reference Variable to Another
Post Your View

Answers
In the primitive variables , An assigment of one variable to another means the the aontent of one varibale to copy with another.Object reference variables work exactly the same way. The contents of a reference variable are a bit pattern.we assign an existing instance of an object to a new reference  More --- >>

By:UMANG
Date:26.02.09

Question:
Assignment Operators
Post Your View

Answers
Assignment Operators is bassically a assigning a value seems straightforword ,primitive and reference variable assignments, nut before we wanna know about what's we have in the back up and peek inside of a variable.Variables are just bit holders, with a designated type. and we also can have an int   More --- >>

By:UMANG
Date:26.02.09

Question:
Bitwise Complement Operator
Post Your View

Answers
The ~ operator is a flip-the-bits operator. It will change all 1s to 0s and vice versa. see this following code: class Bitwise { public static void main(String [] args) { int x = 5; System.out.println("x is initially " + x); x = ~x; System.out.println("~x is equal to " + x); } } This progr  More --- >>

By:UMANG
Date:27.02.09

Question:
Bitwise Operators
Post Your View

Answers
The bitwise operators take two individual bit numbers, then use AND/OR to determine the result on a bit-by-bit basis. There are three bitwise operators: ■ & AND > | inclusive OR > ^ exclusive OR The & operator compares corresponding bits between two numbers. If both bits are 1, the final   More --- >>

By:UMANG
Date:27.02.09

Question:
Casting Primitives
Post Your View

Answers
Create a float number type of any value, and assign it to a short using casting. 1. Declare a float variable: float f = 234.56F; 2. Assign the float to a short: short s = (short)f;  More --- >>

By:UMANG
Date:27.02.09

Question:
Comparison Operators
Post Your View

Answers
Comparision operator result always in the boolean values we also can say its gives output only in the true or false .This boolean value is most often used in an if test, as follows: int x = 8; if (x < 9) { // do something } but the resulting value can also be assigned directly to a boole  More --- >>

By:UMANG
Date:26.02.09

Question:
Conditional Operator
Post Your View

Answers
The condition operator is is a bassicaly a tenory oprator its mainly used for the boolean expressions, its semilar as a if statement but some diff its not executing a block of code if the test is true, a conditional operator will assign a value to a variable, we can also say the goal of the conditio  More --- >>

By:UMANG
Date:27.02.09

Question:
Does Java Use Pass-By-Value Semantics?
Post Your View

Answers
if java passes objects by passing the reference variable instead its means the java uses pass-by-reference for objects, but its not a exactly.Java is actually pass-by-value for all variables running within a single VM. Pass-by-value means pass-by-variable-value. And that means, pass-by-copy-of-the-v  More --- >>

By:UMANG
Date:27.02.09

Go: 1
2 3 Contact Us
Sponsored Ads
Sponsored Ads
Sponsored Ads
Sponsored Ads
Sponsored Ads
Interview Questions And Answers
Struts interview questions and answers (Subjective)
500 Java Objective Questions and Answer
Core Java Objective Questions And Answers
Core Java Subjective Questions And Answers
Core Java 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)
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
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
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
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
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
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

Java Script Interview Question and Answer(1-10).
 Java Script Interview Question and Answer(11-20).
Java Script  Interview Question and Answer(21-30).
Java Script Interview Question and Answer(31-40).
Javascript Objective Questions And Answers
Javascript Subjective Questions And Answers
Javascript Interview Questions And Answers
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

Contact US:

Your Name:


Your Email:

Message:

Comments:

Give Your Comments:

Your Name:
Your Email ID :
Comments :

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