Win a copy of Rust Web Development this week in the Other Languages forum!

anis mistry

Ranch Hand
+ Follow
since Nov 11, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by anis mistry

Explain this conversion
double fah=62.5
double cel =f2c(fah)

Originally posted by Valentin Crettaz:
[b]1) What are octal and hexadecimal numbers
This is another way of representing values. Both are derived from the binary representation of the decimal form.
For instance,
decimal : 157
binary : 10011101 (1*128+0*64+0*32+1*16+1*8+1*4+0*2+1*1)
To get the octal representation you have to group the bits by 3.
octal : 010 011 101 => 235 in octal, represented by 0235 (notice the 0 at the beginning of the number
To get the hexadecimal representation you have to group the bits by 4
hex : 1001 1101 => 9D in hex, represented by 0x9D (notice the 0x at the beginning of the number)
2) What is any number raised to 0 equal to ie 8 raised to 0
Math.pow(x,0) = 1.0 only if x!=0 in which case the result should be undefined although the JVM returns 1.0 for that one see Algebra Help).
3) How to convert a decimal into its octal and hexadecimal
see 1.
4) What is the range of int
JLS 4.2.1
from -2147483648 to 2147483647, inclusive
5) what is the range of float
JLS 4.2.3
6) Why do methods have to be abstract
Because sometimes you want the subclasses to implement the behavior of the method. Abstracting a method forces the developer to implement it in order to make a subclass of an abstract class intantiatable.
HIH
[/B]


thanx Valentin Crettaz
but i still did not understand the 1st answer about octal how did you know where to put 0 and where to put 1 in the conversion so that 157 is equal to 10011101
please clear this valentin
thanx
Some questions while preparing for SCJP from Khalid's Book
Please answer

1) What are octal and hexadecimal numbers
2) What is any number raised to 0 equal to ie 8 raised to 0
3) How to convert a decimal into its octal and hexadecimal
4) What is the range of int
5) what is the range of float
6) Why do methods have to be abstract

20 years ago
Some questions while preparing for SCJP from Khalid's Book
Please answer

1) What are octal and hexadecimal numbers
2) What is any number raised to 0 equal to ie 8 raised to 0
3) How to convert a decimal into its octal and hexadecimal
4) What is the range of int
5) what is the range of float
6) Why do methods have to be abstract

Thank you bosun for your reply but still i insist on definitions from inteview point of view
give atleast one but the best definition for each concept.
20 years ago

Originally posted by Bosun Bello:
It's a good thing that you've actually understood the concept. As for an exact definition, if you look at 5 different texts their definitions of these concepts will differ somewhat. But the concept still stays the same.

Bosun


20 years ago
i have actually understood the concepts of a class , object and abstraction
but can anyone give a exact defination of these concepts
20 years ago
a class cannot inherit two classes that is why java makers brought interfaces
a class can implement one or more interface to extends the functionality of a class
a interface is some like a class. in interface only method declaration is to be done and the class which implement this interface as to and has to write the code or the body of the method according to its need
correct me if i am wrong
bye and best of luck in programmimng career
20 years ago

please tell me the topics to prepare for SCJP exam.
tell me what is the future of java against .net and C# or maybe
others to follow on what basis will java hold on in the market
for a job to i have know basic java or advanced tecnos of java ie jsp,ejb,jini etc
please help
i have finished courses in java .
i now intend to give certification exam to boost my job prospects
please give me the list of topics one should learn for the exam
also what is the max time would a average java programmer require for finishing these topics throughly + how many hours required each day required for that time
also please give me the fees for the exam
also tell me does this exam hold weight all over the world
thanx in advance
thank you my environment problem has been solved but now there is one more problem ie
when i start the tomcat all the jar files are listed and at the end the error comes like BAD COMMAND OR FILENAME
please help
20 years ago
i have downloaded the TOMCAT server and have set the JAVA_HOME and the TOMCAT_HOME varaibles in the tomcat.bat file but when i run the tomcat.bat it gives me the error:
OUT OF ENVIRONMENT SPACE
please help in rectifying the error
20 years ago
i have installed the tomcat server at c:\jdk1.3 directory
but when i give this command at dos prompt it gives error that
you must set java_home to point at your JDK installation
the command i give at dos promt is:
c:\jdk1.3\jakarta-tomcat-3.2.1\bin tomcat start
this is my autoexec.bat file:
<b>LH C:\MYDOCU~1\FUNPRO~1\MAGICF~1\MF.EXE
LH C:\MAGICF~1\MF.EXE
@SET CLASSPATH=C:\PROGRA~1\PHOTOD~1.0\ADOBEC~1
PATH=C:\JDK1.3\BIN;C:\JDK1.3\LIB;C:\JDK1.3\INCLUDE;;C:\ORAWIN95\BIN
set CLASSPATH= C:\JDK1.3\LIB
set JAVA_HOME=c:\JDK1.3;
set TOMCAT_HOME=c:\JDK1.3\jakarta-tomcat-3.2.1;<b>
please help
20 years ago
what does a distributed application mean.
what does corba application do.
what does EJB application do.
and lastly why was there a need of EJB when Corba was already there.
please explain in detail
thank you sean for the reply it was of great help
21 years ago