This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic