Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 39

Warning: include(http://r4r.co.in/common-files/topheader.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 39

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/topheader.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 39

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 44

Warning: include(http://r4r.co.in/common-files/header.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 44

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/header.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 44

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 49

Warning: include(http://r4r.co.in/common-files/bottomheader.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 49

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/bottomheader.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 49

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 55

Warning: include(http://r4r.co.in/common-files/menu.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 55

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/menu.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 55

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 62

Warning: include(http://r4r.co.in/common-files/gaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 62

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/gaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 62

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 72

Warning: include(http://r4r.co.in/common-files/tdgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 72

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/tdgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 72

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 139

Warning: include(http://r4r.co.in/common-files/tdgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 139

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/tdgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 139
R4R Java Core Java Package Lang Lang FAQs Lang Subjective Question and Answer

 


Tolal:22 Click: 1 2
Previous Home Next

Lang Interview Questions And Answers

Page 1

Ques: 1 what is lang
Ques: 2 What is java.lang Package?
Ques: 3 what is the base class of all classes?

Ans:
java.lang.Object

Ques: 4 what do you think is the logic behind having a single base class for all classes?

Ans:
1. casting 2. Hierarchical and object oriented structure.

Ques: 5 why most of the Thread functionality is specified in Object Class?

Ans:
Basically for inter tribal communication.

Ques: 6 what is the importance of == and equals () method with respect to String object?

Ans:
== is used to check whether the references are of the same object. .equals () is used to check whether the contents of the objects are the same. But with respect to strings, object reference with same content will refer to the same object. String str1=”Hello”; String str2=”Hello”; (str1==str2) and str1.equals(str2) both will be true. If you take the same example with String-buffer, the results would be different. String-buffer str1=”Hello”; String-buffer str2=”Hello”; str1.equals(str2) will be true. str1==str2 will be false.

Ques: 7 Is String a Wrapper Class or not?

Ans:
No. String is not a Wrapper class

Ques: 8 How will you find length of a String object?

Ans:
Using length () method of String class.

Ques: 9 How many objects are in the memory after the exeception of following code segment?

Ans:
String str1 = “ABC”; String str2 = “XYZ”; String str1 = str1 + str2; There are 3 Objects.

Ques: 10 what is the difference between an object and object reference?

Ans:
An object is an instance of a class. Object reference is a pointer to the object. There can be many references to the same object.

Ques: 11 what will trim () method of String class do?

Ans:
The trim () eliminate spaces from both the ends of a string.

Ques: 12 what is the use of java.lang.Class class?

Ans:
The java.lang.Class class is used to represent the classes and interfaces that are loaded by a java program.

Ques: 13 what is the possible runtime exception thrown by substring () method?

Ans:
ArrayIndexOutOfBoundsException.

Ques: 14 what is the difference between String and String Buffer?

Ans:
Object’s of String class is immutable and object’s of String Buffer class is mutable moreover String Buffer is faster in concatenation.

Ques: 15 what is the use of Math class?

Ans:
Math class provides methods for mathematical functions.

Ques: 16 Can you instantiate Math class?

Ans:
No. It cannot be instantiated. The class is final and its constructor is private. But all the methods are static, so we can use them without instantiating the Math class.

Ques: 17 what will Math. abs () do?

Ans:
It simply returns the absolute value of the value supplied to the method, i.e. gives you the same value. If you supply negative value it simply removes the sign.

Ques: 18 what will Math. cell () do?

Ans:
This method returns always double, which is not less than the supplied value. It returns next available whole number

Ques: 19 what will Math. floor () do?

Ans:
This method returns always double, which is not greater than the supplied value.

Ques: 20 what will Math. ax () do?

Ans:
The max () method returns greater value out of the supplied values.


Goto Page:

1 2
Share |

Lang Objective

Lang Objective Questions And Answers

Lang Interview Questions And Answers

Lang Interview Questions And Answers

R4R,Lang Objective, Lang Subjective, Lang Interview Questions And Answers,Lang,Lang Interview,Lang Questions ,Lang Answers


Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 108

Warning: include(http://r4r.co.in/common-files/adsnewsgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 108

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/adsnewsgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 108

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 119

Warning: include(http://r4r.co.in/common-files/adsnewsgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 119

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/adsnewsgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 119

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 129

Warning: include(http://r4r.co.in/common-files/adsnewsgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 129

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/adsnewsgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 129

New Updates


Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 103

Warning: include(http://r4r.co.in/common-files/ads3.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 103

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/ads3.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 103

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 114

Warning: include(http://r4r.co.in/common-files/ads4.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 114

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/ads4.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 114

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 125

Warning: include(http://r4r.co.in/common-files/ads5.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 125

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/ads5.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 125

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 146

Warning: include(http://r4r.co.in/common-files/gaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 146

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/gaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 146

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 151

Warning: include(http://r4r.co.in/common-files/row.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 151

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/row.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 151
R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 163

Warning: include(http://r4r.co.in/common-files/gaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 163

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/gaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 163

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 169

Warning: include(http://r4r.co.in/common-files/row.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 169

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/row.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 169

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 176

Warning: include(http://r4r.co.in/common-files/hotlinks.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 176

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/hotlinks.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 176

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 181

Warning: include(http://r4r.co.in/common-files/gaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 181

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/gaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 181

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 188

Warning: include(http://r4r.co.in/common-files/footer.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 188

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/footer.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\corejava\packages\lang\lang_Interview_Questions_And_Answers\Lang_Subjective_Questions_And_Answers.php on line 188