• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

need answers

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I dont have have answers for the below questions.I will be
glad if somenone gives me the answers.
1) does Java support variant datatype?
2)which are indeterminate loop types in Java?
3)what do ordinalcomparators(<,<=,>,>=) return?
4)static modifiers are not allowed to use________ features
of their class.
5)while an objects_________ is unchanging, it may be referenced
by variables of different ________
6)yield()and sleep() throw which kind of exceptions.
7)which of these accept duplicates?
a)collection //accepts
b)list //accepts
c)set //doesnt accept
d)map //may be since map can be combined
8)what are the 3 font names that u can always use in setting a font?
9)what are the 4 integral datatypes?
10)u can define constructors using what 2 access specifiers
11)what class is b in this code:
Base b = new Sub();
Thanks!
 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi avn, here r some of the answers
8) the following three fonts are available on all platforms
"Serif", "SansSerif", "Monospaced"
9) byte, short, int, long
10) constructors can have all the four access modifiers (including friendly), but any one modifier at a time
11) b is an object of class Sub()
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

9) byte, short, int, long.Doesnt char doesnt come under integral
datatype i.e unsigned integral datatype.
 
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I also think char should be included in answer of ques 9.
answer to some other ques ----
3) they return boolean value
4) non static
6) yield() method does not throw any exception while sleep()
method throws Interrupted Exception.
7) set does not accept duplicates.
hope to hear other ranchers opinion
regards
deekasha

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to Bill Brogden's "Exam Cram":
"Java has four basic types of primitives: integer, character types, floating-point types, and boolean types.
The integer types are all treated as signed ... The character type represents 16-bit Unicode characters and can be considered as unsigned integer for many purposes."
In Marcus Green's tutorial four integer types of primitives are:
byte, short, int, and long only.
I would not choose a char for the answer.
 
Your buns are mine! But you can have this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic