User Profile

Collapse

Profile Sidebar

Collapse
Rameshwar Soni
Rameshwar Soni
Last Activity: Jan 23 '12, 11:31 AM
Joined: May 20 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Rameshwar Soni
    started a topic Java double data type problem
    in Java

    Java double data type problem

    can anyone explain me the output of the following program :
    Thanks in advance

    // program

    Code:
    class No_System_Demo
    {
      public static void main(String[] n) 
      {
        double d=020;	// octal no 20 stored
        System.out.println("d=" +d);    // output will be in decimal number system and is 16.0 and thats fine
    		
        
       double d1=020.0;   // octal no's can have
    ...
    See more | Go to post

  • Rameshwar Soni
    replied to Java char data type problem
    in Java
    Thanks for the reply........I now have understood my mistake........ ............Tha nks
    See more | Go to post

    Leave a comment:


  • Rameshwar Soni
    started a topic Java char data type problem
    in Java

    Java char data type problem

    Can anyone please tell me why i am getting an error in the following code?

    Code:
    class Char_Demo
    {
    	public static void main(String[] n)
    	{
    // we all know we can store a character literal like A or //B in an char variable
    
    char c='A';
    System.out.println("Character c has" +c);   //output is A
    		
    	// we can even store the ASCII value for A
    		
    char c1=65;
    ...
    See more | Go to post
    Last edited by Dheeraj Joshi; Jul 28 '11, 08:24 AM. Reason: Fixed Code tags
No activity results to display
Show More
Working...