Which layout manager honours the preferd component size .
1 Border layout
2 card layout
3 grid layout
4 flow layout
In strt which condition would be no robust for making null poinet exception correct 3 answer.
if( i! = null) | (str == i.length()) .
if (i ! = null ) || (str == i.length()).
if ( i == null) | (str == i.length()) .
if (i == null ) || (str== i.length()).
3 1111 JosAH 11,448
Recognized Expert MVP
Which layout manager honours the preferd component size .
1 Border layout
2 card layout
3 grid layout
4 flow layout
Read all about it in the Java API docs for those LayoutManagers.
In strt which condition would be no robust for making null poinet exception correct 3 answer.
if( i! = null) | (str == i.length()) .
if (i ! = null ) || (str == i.length()).
if ( i == null) | (str == i.length()) .
if (i == null ) || (str== i.length()).
I don't know what a 'strt' or 'poinet' are. Check out the Java Articles section for
the 'index' article. At the end of that article you find extremely useful links to a
lot of of Sun's Java documentation.
kind regards,
Jos
ps. before you post your article, please press the 'Preview Post' button first so
you can see what your article actually looks like and it allows you to correct
your typos.
the fourth option is the only one we are not certain it will throw a null pointer. Here:
first option, if the first operand is true, the expression following if is evaluated, if false a null pointer is thrown.
Second option, if first operand is true, the expression following if is evaluated, if false a null pointer is thrown.
Third option, if first operand is true, a null pointer is thrown, if false second operand is evaluated.
Fourth option, if first operand is true, then evaluate the expression that follows if if false then evaluate the second operand. No possibility of null pointer being thrown here.
JosAH 11,448
Recognized Expert MVP
the fourth option is the only one we are not certain it will throw a null pointer. Here:
first option, if the first operand is true, the expression following if is evaluated, if false a null pointer is thrown.
Second option, if first operand is true, the expression following if is evaluated, if false a null pointer is thrown.
Third option, if first operand is true, a null pointer is thrown, if false second operand is evaluated.
Fourth option, if first operand is true, then evaluate the expression that follows if if false then evaluate the second operand. No possibility of null pointer being thrown here.
Great; you just did someone else's homework. Do you think spoonfeeding like
this would help? Please don't do that anymore.
kind regards,
Jos
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Ney André de Mello Zunino |
last post by:
Hello.
I have decided to look again at Java after a *really* long break. While
browsing through the Swing tutorials , I noticed that the basic
skeleton of the demo applications had something...
|
by: Tom Nunamaker |
last post by:
Greetings,
I have the follow table structure:
CREATE TABLE . (
(20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT
NULL ,
NOT NULL ,
(50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT
NULL ,
|
by: jhhbr549 |
last post by:
I need my result to print out only in the box created with a scroll bar. It has to look like this.
The Twelve Days of It
by John H. Howard
On the First day of It
My true LOVE of Computers...
|
by: PieMan2004 |
last post by:
Greetings,
Ive came across problems while doing a tutorial work piece.
i've to design a toobar ( yup a JToolBar ) with 5 buttons inside it, that will do certain functions for a JSlider.( set...
|
by: lucky29105 |
last post by:
I am at my wits end here- I have an assignment due today (05/11) and I still cannot compile. I am getting 14 errors! I don't want someone to do my work, but I need help, I am stuck. Here is the...
| |
by: nomad |
last post by:
I made a simple GUI program in which I want to place a .gif into a button.
I did this but the .gif does not show up. The load.gif is in the same package (chapter 10) as the project.
If I take these...
|
by: helpwithcode |
last post by:
Hi people,
I am just learning java.I have been creating a project which involves JDBC Connectivity.I find that the statements,
String string_dob=text_dob.getText();
//Converting string to...
|
by: twin2003 |
last post by:
need help with inventory part 5 here is what I have to do
Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next...
|
by: taishin |
last post by:
so far i got this...
but the shapes that i created i need to be able to click and dragg and move around with the mouse..help!!!!
and also some where here i need to draw and equal sided triangle
...
|
by: flg22 |
last post by:
Hi
I am working on this Rock, paper, scissors java game and the program works, but I can not figure out how to get the images to load onto the program. So my question is how do I get the images to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |