|
INTERVIEW QUESTIONS
J2EE
JAVA
DETAILS
Question: What are the primitive types in Java?
Answer: According to Java in a Nutshell, 5th ed boolean, byte, char, short, long float, double, int
|
|
|
Category |
Java Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 8855 users |
Added on |
7/17/2011 |
Views |
69789 |
Rate it! |
|
|
Question:
What are the primitive types in Java?
Answer:
According to Java in a Nutshell, 5th ed boolean, byte, char, short, long float, double, int Source: CoolInterview.com
In Java their are eight primitive data types those are byte, short, int, long, float, double, char, boolean out of which first six are for numeric literal , char is for alphabetic literals & boolean contains only two values true/false. Source: CoolInterview.com
Answered by: Rahul Pande | Date: 2/12/2008
| Contact Rahul Pande
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How would you implement a thread pool
|
View Answer
|
|
How do you declare constant values in java?
|
View Answer
|
|
Do primitive types have a class representation
|
View Answer
|
|
When you have an object passed to a method and when the object is reassigned to a different one, then is the original reference lost
|
View Answer
|
|
What is a memory footprint? How can you specify the lower and upper limits of the RAM used by the JVM? What happens when the JVM needs more memory
|
View Answer
|
|
When you use a struts framework, where would you place your business logic
|
View Answer
|
|
How all can you free memory
|
View Answer
|
|
Does java do reference counting
|
View Answer
|
|
What does a static inner class mean? How is it different from any other static member
|
View Answer
|
|
What are the differences between JIT and HotSpot
|
View Answer
|
|
What are the disadvantages of reference counting in garbage collection
|
View Answer
|
|
What is EJB
|
View Answer
|
|
What is the sweep and paint algorithm
|
View Answer
|
|
What is reflection API? How are they implemented
|
View Answer
|
|
What is the primary advantage of XML driven Java Beans
|
View Answer
|
|
Will there be a performance penalty if you make a method synchronized? If so, can you make any design changes to improve the performance
|
View Answer
|
|
In Java, how are objects / values passed around
|
View Answer
|
|
can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program?
|
View Answer
|
|
If there are 2 different versions of object streams on disk and only one object definition, how will the JVM reject the wrong one? Can you fool the JVM
|
View Answer
|
|
How is serialization implemented in Java
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Java Interview Questions & Answers - Exam Mode /
Learning Mode
|