What primitive Java types? Howmany are they and what are
their names?
Answers were Sorted based on User's Feedback
Answer / ramesh
primitive type is predefined in java.
byte , int ,short ,long , float , double,boolean and char
are the primitive data types used in java.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / prasanna
They are implicitly defined in Java.There are 8 of them and
they are:
boolean,char,byte,short,int,long,float,double
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
primitive datatypes are the one which will allocate some
memory in the stack.And there are 8 primitive data types
1).byte
2).short
3).int
4).long
5).float
6).double
7).char
8).boolean
| Is This Answer Correct ? | 3 Yes | 0 No |
if i have one string class then how can you achive this class functionality of this class?
How do you convert an int to a double in java?
Which collection does not allow duplicates in java?
What will happen when using pass by reference in java?
What is instance means in java?
What are implicit objects in java?
Are private methods final?
What is the difference between integer parseint and integer valueof?
Can we access instance variables within static methods ?
Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.
What defines function?
What is java in layman terms?