GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 174 of 502    Print  
what is the notation for matrix in java?

  
Total Answers and Comments: 1 Last Update: November 26, 2005     Asked by: suman 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 21, 2005 06:30:52   #1  
Navdeep        

RE: what is the notation for matrix in java?

Array is the collection of Similar data type and has fix size.

datatype arrayname[] new datatype[size]; or

datatype []arrayname new datatype[size];

eq: int a[] new int[10];

Two Dim Array:

datatype arrayname[][] new datatype[rows][cols]; or

datatype [][]arrayname new datatype[rows][cols]; or

eq: int a[][] new int[2][2];


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Memory leaks are possible in Java. There is a possibility that the garbage collector may never even run during an application's lifetime, even if it is explicitly invoked by calling System.gc(). The garbage collector won't be automatically run ...

Latest Answer : JavaBeans are just regular class files. They have get and set methods only. They are not controlled by separate EJB server like JBOSS etc, They can easily work on JVM itself and they dont require any application/EJB server.EJB'S also have get and ...

Latest Answer : Java is only pass-by-value language. Passing a reference is not possible though you can pass by value. If you want changes to reflect back then consider the primitive type in a custom class not a wrapper class i.e., to say, this class will have getter ...

Latest Answer : The main differences are: Java does not support typedefs, defines, or a preprocessorJava supports classes, but does not support structures or unionsJava does not support multiple inheritanceJava does not support operator overloadingJava does not support ...

Latest Answer : hi,To achieve multiple Inheritance in java we must use Interface. ...

Latest Answer : Primary Advantages is, we don't need to add code in Java Class(attribute, Mutator Method[get/set]), Sipmply we can add new attributes by modifying XML files. Eg . ActionForm and DynaActionForm in Struts FrameWork. ...

Latest Answer : primtive datatyp is non object datatypeint chat short byte long float double boolean ...

Latest Answer : Yes. Every thread maintains its own separate stack, called Runtime Stack but they share the same memory. Elements of the stack are the method invocations, called activation records or stack frame. The activation record contains pertinent information ...

Latest Answer : HiHeap is the location where a object is stored after it is instansiated.Means after A obj=new A();now obj will be storeed in heap. ...

Latest Answer : In Java Object are passed by reference and Primitive data is always pass by value ...


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Using UML with Java

Using UML with Java While Java is not a new language its application for the development of embedded systems is quite new Developers are beginning to take a second look at modeling languages such as UML and many feel it can be a powerful tool in their development arsenal mosgoogle center Introductio
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

Java Technology Trends

Technology Trends Involving Java Java is an object oriented programming language OOP for Web browsers It is organized around data rather than actions and supports polymorphism which allows the same code to be written generically so it can function with different datatypes inheritance which allows on
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape