Exam Permalink:
https://www.jobilize.com/oracle-certified-professional-java-programmer-scjp-ocjp-mock-exam
Question Permalink:
https://www.jobilize.com/concatenating-string-and-null
Question 26 / 297:  What is the expected output?
public static void main(String args []) {

String stmt = null;

System.out.print(null+stmt);

System.out.print(stmt+null);

}

A  RuntimeException is thrown because of the first print statement
B  RuntimeException is thrown because of the second print statement
C  nullnullnullnull
D  nullnull
E  compilation error
<< First < Previous Next > Last >>

Questions & Answers

write about software engineering
Mandala Reply
define iterative model. example of iterative model. advantages and disadvantages of iterative model. when to use iterative model
Okello Reply
i try out in netbeans this code:public class Profile { private Profile(int w) { // line 1 System.out.println(w); } public final Profile() { // line 5 System.out.println(10); } public static void main(String args[]) { Profile obj = new Profile(50); } } It is the question 5, and the answer is 50
Jacqueline Reply
i need help....Discuss the factors that influence the choice of the software development methodology to use when implementing software projects?(20)
tatenda Reply
The success rate of software development projects can be increased by using a methodology that is adequate for the specific characteristics of those projects.  then the focus on RAD,XP,RUP.
Hemant
hemant hie...it is a presentation i am working on...can you help me wth the introduction....please a powerful one hahahahha
tatenda
yes
Hemant
Define and show all Dipthongs and vowels used in english phonetics
Okendro Reply
what is the software engineering
Axmed Reply
Please how can I create an application?
Eric Reply
please how can I create an application
Nchor
How do we create a software
Florence Reply
give a more direct question
Louis Reply
what is semantics?
amjad
what r the computer codes
Kawuba Reply
machine code, source code , object code, and byte code etc
Hemant
what is software
Manobendra Reply
a collection of program executable by code is called software
Hemant
how can I create a software
Mary Reply
use in any model . then after you create any software
Hemant
what is capability maturity model integration
Muctarr
what is maturity level
Muctarr
maturity level is organization's process improvement achievement in multiple process areas
Hemant
how to trubulshoot is configuration ?
priya Reply
hello
Julius
hello
abeer
hello
Sahil
hello
Natnael
Hello
Eric
Guy's put your answer only
Natnael
click start then click run then type msconfig then ok
Natnael
explain coco model
dawood Reply
it model based on LOC. i.e; number of lines of code.
Hemant
What is a client engineer
buthayna Reply
A Customer Engineer (CE) is a worker whose primary job scope is to provide a service to customers who have signed a contract with the company.
Fokuo
Thank you
buthayna
Hi
ahly
hello,how are you doing?
Fokuo
nothing
Hemant
it's a pleasure meeting you.
Fokuo
tq
Hemant
Nice to meet you too
Hemant
good night
Hemant
hi in here
Asongafac
hello
Eric
please I want to more about this group
Asongafac
pravinkumar
pravin
hello
pravin
I want to create software
Michael
name suraj kumae
Suraj
Exam Home Page
https://www.jobilize.com/oracle-certified-professional-java-programmer-scjp-ocjp-mock-exam

Oracle Certified Professional Java Programmer

Author:

Access: Public Instant Grading

Ask
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/oracle-certified-professional-java-programmer-scjp-ocjp-mock-exam" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>